How to stop worrying about male attention and validation and focus on myself?

I tend to think about guys too much and worry too much about whether I’m attractive enough, approachable enough, etc, etc. I want to talk to guys without making it into a thing and like myself despite how guys may see me. Mostly I won’t to focus on myself and my interests without worrying about being likable. but I also have a huge fear of being lonely and I romanticize everything to make myself feel better which usually just bites me in the ass. At my core I just want to be liked and loved by someone else but I want to learn how to like and love myself.
How to stop worrying about male attention and validation and focus on myself?
Post Opinion