Fix: re.sub needs flags kwarg parameter.