I experience the same thing, and it's not caused by shaving. I only get the red spots if I let my hair grow for longer than 3 weeks. My dermatologist once told me it's an autoimmune disorder, causing the skin to plaque up, become irritated, and in some cases results in alopecia areata. Your case is pretty mild.
The red spots will peel off and fade in 5-10 days.