I haven't had a boyfriend since 2020. I have slept with a couple guys, and you should see their heads spin when I tell them I don't need or want a relationship. I lay it out very clearly, and they don't listen. They're always shocked as time goes on and I demonstrate that what I said was true: I don't need or want a relationship.
But I wouldn't go so far as to not having male friends. Not all men (I know, I know!) are like that, and I don't want to discriminate against an entire group of people.