Is this herpes?

I have been tested for herpes before and it came negative, at some point, I thought I had HPV, the urologist made it clear that I do not have HPV. These lesions/pimples/ulcers keep popping up when I have a weakened immune. Everything I have researched tells me that I have genital herpes or possibly HPV