What are these spots on my legs?

Excuse my non shaven legs. I’ve been seeing these pop up the past year and they seem to be getting worse. What’s crazy is if I scratch at them a flake of skin will come off and then I can pull the hair out with tweezers. I shave my legs like every other week so I don’t think they are razor bumps? How do I treat these?