Welcome to Just Answer.
I am presuming we are talking about head hair here?
Scalp folliculitis is an inflammatory disorder of the hair follicles in the scalp.
It is characterised by rednness around the root and sometimes small, very itchy pustules within the scalp, often most troublesome on the frontal hairline. There may be only a small number of lesions or they may be very numerous. They are hard to leave alone because of the itch. They often become sore and crusted.
The cause of scalp folliculitis is not well understood. It is generally considered to be an inflammatory reaction to components of the hair follicle, particularly the micro-organisms.
The scalp should be washed with a mild normal shampoo as often as desired. Antidandruff shampoos containing antifungal agents such as ketoconazole or ciclopirox are sometimes helpful. Conditioner can be used if wanted.
The following medications may be helpful:
Topical antibiotics e.g. fusidic acid gel, clindamycin solution, erythromycin solution .
Mild topical steroid lotions or creams
Oral antibiotics, particularly long term tetracycline
Oral isotretinoin;long term low dose treatment may be required
The only other thing it could be is reaction to something such as shampoo, conditioner, hair spray,hair colour If any of these have been changed or just commenced, stop using it and see if the condition disappears. If not it really needs to be seen by a dermatologist who will give a definite diagnosis and appropriate treatment.
I do hope you get it sorted out soon it must be so very uncomfortable!
I hope this helps you.
With my very best wishes