It could be sentiel pile,skin tag near anus caused by Fissure in ano
,a crack like condition in the anus .IT occurs due to passage of hard stools or constipation
It is not related to herpes.
Please eat high fiber diet,drink plenty of fluids.
I prescribe Sucralfate
ointment to my patients with similar complaints for anal application.
If it is not subsiding with medical treatment,consult a surgeon and proceed accordingly.
Wish you good health