It could be pseudofolliculitis due to piercing of skin by sharpened end of the hair due to shaving. In that case you have to avoid shaving the area you are talking of. Sometimes it may result from secondary bacterial infection, then topical antibacterial cream / ointment - like soframycin or even better -Mupirocin ointment / Fucidin cream may be used.