I THINK I HAVE HERPES I DONT REALLY KNOW AND ITS SCARYING ME

in january i was trying to have sex with a girl and i was rubbing my penis around her vagina, we wasnt feeling it so we didnt do it. a couple months later i went back to my ex girl, we had sex a couple times and then she started to feel this burning feeling and went to the doctors and had found out she got herpes. i never did a test or anything to see if i had it from the girl in the past but i had seen red dots/ minor bumps on my tip only and mostly on the side of my tip. I had been taking valtrex cause i assumed i had it and i'm not seeing any progress and i told my doctor and she said for me to see the dermatologist. i seen it and i told them the same story and they looked at my penis and they didnt want to touch it and they said that its not herpes or anything. After masterbaiting i felt a burning feeling too and i would see these red bumps would appear more visible. BUT I NEED HELP IDK WHAT THIS IS AND IM WORRIED[