I consider myself recovered (never thought I'd type that, tbh) without getting a girlfriend (which was what I thought was my main problem previously) and not due to making any friends. Meaning, my social situation is imo not significantly different from ten/five/two years ago. To the extent that it is different (doing a hobby where I'm engaged with people, volunteering, etc), I believe it's because of the changes rather than the other way around.
I do have a family which I'm very lucky and grateful to have. But that didn't change from when I was close to ending my life to now, my thinking is that a change in such a factor isn't necessary for recovery. Notable is that I recovered without getting a girlfriend, which I would think was either impossible or at least super unlikely previously, and was my perceived main source of suffering.
What I think worked for me was to start helping others/doing good deeds (donating to charity, trying to get a job/studying where you help people, etc), stopping bad behaviors (going vegan, being more careful with speech and action, etc), and a daily meditation habit (started with just 30 min per day and using a debt system where I had to do two sessions one day if I missed a day). The meditation I believe makes it easier to cope with the emotional pain/loneliness/etc (and even physical pain, for me I notice small amounts of pain are way less bothersome) and makes it easier to help others (less fear and greed, freed up from grip of emotional suffering and needing to escape less). The motivation for doing things for myself was simply too weak for me to live, I guess. I needed a stronger motivation like helping others and strengthening myself in order to help others (and help myself, as well).
I also would ask if there's any way you could get some positive social experiences going. Like volunteering or collaborating with others, playing games, or stuff like that? Even doing it online might be worth checking out. Otherwise, maybe even positive parasocial things like watching youtube (perhaps about meditation), etc, might do something?