I realised company/loneliness is not merely about the physical, but it is about a sort of connection that happens at a subtler mental level.
Not sure whether others have had similar experiences.
Either way, if there is any truth to my experience, then you may have to think deeper about what is connection about and how to make it happen more often.
Another pattern I've noticed, natural communities emerging from hobbies/topics, such as in Discord and Youtube.