I’m so fucking lonely

I have no friends. Every friend I’ve ever had has ghosted me or fucked me over somehow and when it was just a few I could obviously blame them but now that’s it’s damn near every single person I’ve gotten close to I can’t keep pretending I’m not the problem. I just want to understand why nobody likes me. I think about the past and every situation and genuinely can’t understand why people don’t want to be friends or stay friends with me. I feel so pathetic and lonely and I’ve felt like this my whole life, no matter what I do nothing changes. I just want to understand, I want to have friends, I want to have people I can talk to and actually hang out with and I want to feel like people like me but I can’t because nobody seems to want to be around me. What the fuck do I do