What is good to use if you have hair bumps on your scalp that hurt?

See dermatologist. This in infection and possible infected scars which need to be treated medically and possibly even with minor surgical procedure. This does not resolve with over the counter measures.