Yesterday I had a number of pimples after unprotected sex

Hello, first of all I will mention the background, I suffered from rubbing my penis in the area of ​​the head which became infected, I was treated with Mupirocin and everything went well and even my doctor approved me to have sex. 3 days ago I had an unprotected relationship with my new girlfriend. Then two days later pimples appeared. I think there may be several factors. 1. Sexually transmitted disease (even though my partner and I were tested a month ago and everything is fine) 2. Side effect of Bepanthen ointment

image

image

3. During intercourse I was very, very stabbed by my partner's shave. I will attach a picture. Symptoms - slight itching, redness.

what it can be?