It's definitely a challenge to navigate friendships throughout the different phases of life.
As a teen I was naive in placing so much importance on friendships. The experience was totally worth it, but almost impossible to reproduce after that naivety is gone. I think most people eventually learn that friends come and go and stop doing that, especially during the raising kids/making money phase of life.
In my early 30s, I realized my work buddies weren't going to remain friends after we stopped working together, and I became nostalgic for the friendships of my youth. I tried to form some new friendships via interest groups, but it seemed as though friendships had become as ephemeral as Facebook friends. Probably a sign of the time.
Now, in my mid 40s, I am facing an empty nest soon and expect to be able to invest some time into a group and form some new friendships. But it doesn't help that I live in a conservative area that doesn't have many intellectual or techy people. I will probably end up driving to a big city for a once or twice a month meeting.
It can be discouraging, but I think it's important to keep trying to find people to connect with. Not doing so would be really bad for your health and wellbeing.