Thanks for writing here.
It seems you are having folliculitis
It is a infection of hair roots caused by staph.
Avoid hair gels,sticky hair oils.
Use a good shampoo for hair cleaning.
You can apply a topical antibiotic
over the affected area.
Hope this will solve your problem.Take care.