I'm sorry, that sounds tough. You're not alone. I don't have many friends, the ones I have I seldom hang out with. I can understand the feeling of lacking that connection and the fear of missing out on life. The best thing I did for myself was teach myself how to enjoy my own company and value my own non-shared experiences. Mostly I like hiking or traveling when I can which excites. For you that could be practising going places in the city by yourself like to the cinema for example.
I'm not saying be a loner forever it's just a solution as making friends is hard in adulthood and you don't want to feel like you're missing out on experiences because you don't have anyone to share them with at that time.
I'm sure you will make friends in your new work at at uni when you go back. Just need to put yourself out there and build connections with people. If you're single maybe try going on a few dates. You could potientally find your best friend within a partnership and/or join their friend group.
Other ways you can make friends that I can think of is joining a hobby class, try bumble friend version, go out yourself to cafe, a comedy show or bar etc. (I wouldn't recommend night things unless you know you'd be safe for sure but I did it once when my friend ditched me and made friends while out), if you're into traveling, a lot of solo travellers make life long friends with other solos so that could be an option.
If you're really lonely maybe try making friends online that you can talk to daily/video call. It's not ideal but it's something. All my brother's close friends are online and he talks to them everyday for hours, plays games and stuff.
I wish you the best and really hope things work out for you!