Ingrown hair or herpes?! Please help

I’ve recently been diagnosed with a really bad uti that doesn’t seem to be clearing up anytime soon. Painful urination is killing me! Yesterday I noticed these bumps. I did shave about 2 weeks ago and my hair is growing back. These bumps are painless but I’m very curious and worried about what this is...