I'm the type of guy that always moves with purpose. When I'm done doing something, I'm quick to leave. Looking back on my life so far, I think this has often been mistaken as antisocial.
Every event involving humans is default social. Leaving quickly precludes much of life's social whimsy.
It's a good energy to bring to work or to a crisis. Everywhere else? Maybe not so much. I appreciate you mentioning it here; it can serve me also, as a reminder to work on that.
When I started my Ph.D. program, there was a weekly seminar that I started going to. At first, I instinctively left each week immediately after the talk was over. But I noticed that a lot of people would hang around afterwards and chat. Even though I found it a bit awkward, I started following their lead -- a habit I'm very glad I developed!
This can be replicated with similar activities that involve a schedule, like joining classes, volunteering, or whatever else fits that kind of setup.
I would try and get something where you can see the results in front of you. I worked years ago at a soup kitchen for the elderly and felt much better for it, than working in a charity shop on a till and feeling like I was just a worker unpaid.
*Assuming you possess the necessary social skills.
I've trained BJJ consistently for over 4 years now. I think fondly of all the people there and feel accepted, but we barely talk, and I'm unable to participate in the locker room camaraderie.
This is probably not a problem OP has, I just felt the need to complain.
Looking back on the last two years and auditing what worked, I would say routine and lingering were the most important thing.
Trying new things is mentally draining and labor intensive, this is a fact of life for many. What worked for me was finding something I enjoyed (exercise classes) and doing it consistently multiple times a week at the same place for months. With repetition, it's very easy to make new friends. Complaining about one exercise one week turns into making comments about the music the next, and all of a sudden you're getting coffee with friends.
At the start it was very difficult, and I was very bad, but now I'm part of a community and have many close friends. Its a hour per day most days of the week. It's also a jumping off point for everything else social. It provides purpose and self-confidence. Which are prerequisites for everything else meaningful in life.