Not being “wanted” or “desired” isn’t the end of the world, trust me. Learn to love yourself. Date yourself. Treat yourself nice. Once you become good at this you’ll find that allowing another to come in and manipulate circumstances isn’t the auto go to. Build the inner world. Make it beautiful. Then only allow in those who have done the same in their own inner world.
If it doesn’t feel good, stop doing it.
Self-love is an action of providing yourself with unconditional love, nurture, comfort and respect. It does not mean that we are selfish humans (not all of the time), but that we need to love ourselves fully and entirely before we can be loved by another human being.