That looks like an ingrown hair crater. I have had many of those over the years after shaving. It should heal normally but could leave a small scar.
It is probably an ingrown hair, but you can get checked for HSV if you want to be sure.