Have you ever received oral sex? If you haven't, it can't be herpes.
It could be balanitis, or a fungal infection (or both) -
https://www.medicalnewstoday.com/articles/184715.php
https://www.healthline.com/health/balanitis
You should let a doctor check it out. It may need specific treatment.