My dermatologist told me that the only 100% effective way to get rid of them if you are going to continue shaving is to take antibiotics. Your skin is treating the hair turning back on itself as a 'foreign body', but it fails to tackle it by producing white (blood) cells.

I was also told "don't shave" as an alternative to that... But we don't want to talk about that on these forums!!