Thanks for the query.
You might have developed folliculitis
It is a bacterial infection,
Another possibility is fungal, that is candida infection.
Treatment can be with antifungals or anti bacterials depending upon the condition.
Please meet a dermatologist
for final diagnosis and treatment
Let me know if you have any other doubt.
you can ask a direct question to me on this forum, following the below link.
Wishing you a good health.