That article talks about midlife, but loneliness starts well before people reach their 40s and 50s and is only getting worse. Per this HN post from last month, teenagers today hang out in person 50% less than teenagers from 20 years ago: https://news.ycombinator.com/item?id=39378259
I live and work in the Bay Area and have experienced this myself despite having worked at large tech companies, where in theory it should be easy to meet folks. Recently, instead of just reflecting on my situation, have started validating some potential ideas that could help tackle loneliness. If anyone is open to sharing how you've either overcome loneliness, or struggled to (like me), please hit me up. Email in profile.