I'm literally going through the same exact thing, I am not close with my flatmates and at this point I kind of don't expect that we'll become very close and start hanging out. Though I do have one flatmate who I'm friends with. Coursemates are nice and I've made friends but due to everyone scrambling for housing and having alright relationships with their flatmates I feel that I'm a secondary friend to them.
Though I can tell you, you're 100% not alone in this. I've had multiple conversations with people who are also not close with their flatmates and are struggling with the unadvertised loneliness of university.
A lot of the marketing of university is people sat around reading textbooks and socialising when it's really not that. It can also be a struggle as it seems that everyone around you already has their 'lifelong friendships', this is not overly true. I can promise you that some of these people are going to have major fallings out with eachother later in the year.
I think the best thing to do at the moment is to give yourself a break first of all, you've pushed yourself very hard emotionally and you've done pretty well. You've also moved away from home for the first time, everything is going to feel awkward and like it doesn't fit because you don't have your familiar home to ground you in place. I haven't really found a solution to our problem, though I think the best course of action is to keep trying. Societies are definitely a good fallback to meet people you probably will click with e.g. I'm part of the Board and Table-Top Roleplay Games Society and everyone there is pretty much a shade of neurodivergent which is something I share in.
Good luck and I hope we both find our people!