If you only socialize with co-workers I'd say that is the bigger problem. All my interaction with people outside office hours are with people I don't work with.
Should I consider myself privileged in this respect?
I have a collection of friends from different contexts. Some from past jobs, the gym and other friends. So WFH is great. If your only social group is work, then you should expand your circle, because you never know when the employer might fire you or lay you off. Which will make you very sad because suddenly you lose all your friends.
I've only had one job in my whole career where I met people I wanted to hang out with outside work. One of two of the guys I work with now might meet that bar if they weren't so far away.
Where else do we find people? Well, we're all older, so we already had friends from other activities -- political involvement, volunteering for arts orgs, our cycling group, etc.