Hi there ~
I understand your concerns. It seems like you have been having problems with poor genital hygiene. If you have a lesion such as what you have described it is probably due to having a sexually transmitted infection if you are sexually active. However, assuming that you are not it is most likely to be folliculitis
and to avoid the same in the future it is good to keep the genital area clean and dry and use an antibiotic powder. I hope this helps.
Take care and have a lovely day!