Well, personally i'd say the answer is compromise. Ultimately, avoiding social interaction entirely can be harmful, so it's definitely something to work on, even if just a little. I'm definitely not just saying "get out there and deal with people", because i understand how difficult that can be, and that not everyone needs to be around people 24/7 to be happy. But cutting yourself off entirely isn't healthy.

For that i'd suggest trying simple things like going to the shop or attending a small group event related to an interest, like a card game. But most of all i'd say that there are plenty of areas you can work in that don't require you to deal with other people much at all. Do you have any creative interests? Would you enjoy working with computers? Is there a particular interest you could see yourself making videos or writing articles about?
Although, is some form of lockdown a factor here? Because if so then my answer would be that it's pointless to worry about right now, since even if you wanted to do these things that wouldn't really be an option at the moment.