I am somewhat suspicious of this loneliness epidemic. 81% of Americans are somewhat satisfied or very satisfied with their personal life[0]. And my personal experience is that both close friends and general civil community is easy to find[1]. I wasn't trying at all so it can't be that there are any real constraints here.
0: https://news.gallup.com/poll/655493/new-low-satisfied-person...
1: https://wiki.roshangeorge.dev/w/Blog/2025-10-09/Community