I relate quite a lot to what you described. I've personally found Uni to be quite lonely at times. I've come to realise that I am on the autistic spectrum and have social anxiety to contend with too. I've joined a number of societies anf I'm mostly quiet. But, if someone brings up something and I feel I can contribute, I do so. Most of the time it goes nowhere, but it sometimes leads to more conversations.
I think my main piece of advice (which is the same thing I tell myself) is, don't give up. You are a good, interesting, person and you will find your people. It might take time, but emotional, real, friendships take time to establish.
Things will get better. Just keep at it.