Is this herpes ?

I noticed this after a few days of irritating pain. I thought it was from my underwear, but I’m not so sure. I had sex with one if my friends a while back in 2017, & I recently found out he has herpes. He never told me. Should I be concerned?