You don't, you're destined to be alone forever and so am I
I was in your position a few years ago. My first suggestion would be to go seek professional help if you have the recourses ofc! If not, I found volunteering helped to build my social skills and be more confident, it also gave me a routine and something to look forward to. Again, this really depends if you have access to it or the spare time. I hope this helped a little, and didn't come off as patronising.
I can vouch for volunteering helping a ton. Not only did it get me out of my shell a fair bit, I made a few good friends doing it
thank you all i really appreciate the advice