Hello,
What you have can be pseudofolliculitis barbae. Pseudofolliculitis barbae is a type of folliculitis which results from shaving. Treatment consists of letting your beard grow for 1 month and then shaving with a moisturizing shaving foam and single razor blade. Shave in the direction of the follicle
, not against it and at night, apply a lotion containing glycolic acid to the affected areas. This exfoliates the surface skin cells and reduces the likelihood of new inflamed spots