Check whether a RegExp flag is supported. Mostly useful for `y` and `u`.