Raise TypeError if one passes flags on already compiled regex