Learn an activity that has a community surrounding it. For example, take dance lessons (I suggest swing dancing) -- which is highly technical and is predominantly practiced by techy folks. Or anything that is both structured and social, and the social can help with the loneliness.
Obviously, some of these things are harder to do mid pandemic, but hopefully we're near the end.
Plus this, any social dance with large friendly community is great. Take some lessons and visit all dancing parties. It's amazing and refreshing experience that provide a lot of new positive emotions.
Obviously, some of these things are harder to do mid pandemic, but hopefully we're near the end.