Weird friendship bonds

I noticed when I meet people i tell them

Personal things and i don’t know why i do it? I just realized that I was doing it so I’m going to stop. I noticed some of my friendships started that way, i did grow to like the person somewhat but like i don’t really like them. Then i feel

Bad because we’re not really friends we’ve just gone through the same stuff. Since i made the conscious choice to stop doing it, how do i create healthy friendships and what have other people done to kinda do a health check on the friendships/relationships they have.