If you don't spend enough time getting to know yourself, you'll end up absorbing everyone else's definition of you.
The people around you will define you by what's convenient for them, not what's true about you.
Do the inner work. Not for confidence, but for protection.
Know yourself deeply enough that their definition can't stick.
Get addicted to thinking positively about your life. Not delusion, not pretending everything is perfect, but training your mind to stop betraying your future with fear. Speak life over yourself until your spirit starts believing you again. Expect good things. Look for lessons. Trust your process. Some battles are won the moment your mind stops agreeing with defeat.