Creates a regular expression from its pattern and its options, for example RegexValue('^foo', 'i').
pattern
options
RegexValue('^foo', 'i')
const RegexValue(this.pattern, this.options);