I got kind of the opposite of that at the hands of a male doctor. "You can't have Long Covid, only women get it."
But the female doctor I got after that wasn't much better. Third female one is at least taking me seriously.
To have the fun of experiencing what doctors are like when you have a chronic illness play You're Just Imagining It.