K.N.
When is the last time you replaced the razor blade insert? Last time I got inflamed leg hairs, I changed the razor to cut out the possibility of bacteria and/or rust.
You might have to forego shaving few a few days, just until the pores calm down. Also, use a antibacterial soap like dial. And take some tylonal to help distract your sensitivity and itchiness.