I made lots of friends (and eventually my wife and best man at my wedding) in my early 30s by first joining a meetup group and eventually becoming the organizer for it. It was disbanded a few years ago (before Covid), but I still hang out with the 13 or so people I met in the group. The group lasted almost 8 years.
I had work friends in my 20s, but it was always difficult for me to make new friends after college. Joining a common-interest meetup group made it so much easier. I find the key is to meet weekly and in-person. If you don't do this, you just won't be able to put the time in to actually have a real friend.
It would be nice if it was as easy for adults as it is for kids. My daughter will go up to another kid and say "Do you want to be my friend?" and they will play all day together.