And I would add to what others have said: NEVER HIKE ALONE!
I hike alone a lot. I always have a hiking plan and check in via Garmin at the end of the day. If I need to deviate from the plan, I communicate the route deviation and new plan before I change course. Solo hiking doesn’t necessarily mean you don’t see other people. Some trails are like social events and others offer solitude.