I don’t know your exact experiences, but I had a similar feeling in the past. However, recently I noticed it was a lot of how i behaved to them. I started speaking more openly with my male friends and noticed, they also value my emotions. The main difference was, that my friendships with women started on an emotional level making it a lot easier to open up for me. With my male friends, I needed to just say how i feel, which i have not dared for a long time. My own stereotypes probably played a larger role than the gender of the people involved.
However as others have said, if they do not take you seriously when you open up, they are bad friends. (Edit: Bad friends is a bit harsh, more like friends for having fun together, not to rely on. This is also nice even if it can be hard to accept)
relevant xkcd
Title text
Gotta feel kind of bad for nation-state hackers who spend years implanting and cultivating some hardware exploit, only to discover the entire target database is already exposed to anyone with a web browser.