It looks more of dye dermatitis as per your description of lesion, but clinical picture is required to write treatment.
Next Steps
Kindly do online consultation for prescription
Health Tips
Do mot apply anything over pigment led area without prescription, for the time being do not apply hair dye, protect from sun exposure of affected area by wearing cap/ sunscreen