from your description there are two possibilities :-
1. a reaction following the shampoo.
2. fungal infection
it will be best to visit your dermatologist
who can examine you and treat it accordingly.
since its painful, there is a chance of secondary bacterial infection, hence its best to consult your dermatologist as soon as possible.
for temporary relief you can apply a steroid and antibiotic combination cream like cortisone