The shampoo to remove build up can remove chlorine but it is a deep cleanser and can be drying if used too often.
You could also use the vinegar rinse which will also benefit your scalp.
Please consider applying a hair moisturizer such as the dry hair lotion, dry hair treatment or a leave in conditioner prior to swimming.
Here is a link to the build up removers-
https://justnutritive.com/hair-care-products/build-up-removers/