In Dec 1st 2022, I had an encounter with a women no sex but we had genital rubbing after 2 months i got a pimple with yellow liquid inside it on my penis shaft, then I went to a Dermatologist who looked at it and pop it up and said its not an STD dont worry it is Fordyce spot so I relaxed and then after a month the same pimple filled again with yellow liquid so i pop it up my self. Now after 6 months from encounter the pimple remains no liquids and skin color no other symptoms.
If the doctor didn't think it was an STD, and he saw it, it probably wasn't. It doesn't sound like one.