If value is wrapped in slashes (e.g. /foo/), this holds the compiled RegExp.
/foo/
final RegExp? regex;