you could try sanding them down and refinishing but I don't thing you can remove the dye.
i would send it off slightly and apply think coat of paint and stain
Try dye remover for the beauty supply store.
I agree with trying the color remover made for hair color. Good luck!
In a bowl, mix 2 cups of warm water, 1 tablespoon of baking soda and 1 tablespoon of liquid dishwashing detergent together. Drench a clean cloth in the solution you just mixed. Rub the stained area of the wood floor with the cloth until the hair dye mark disappears.
When I worked as a hairdresser we always used hairspray or alcohol to get it out of our clothes I have tried it on my bathroom wall and it didn’t work too good so I’m not sure if you’re going to be able to get it out exactly you may have to sand it and refinish! You have to get it when it’s really fresh and wet