Change Regex::regex to public static
Breaking
Change the method signature of protected function regex(): string
to public static function regex(): string
when extending the Regex
class.
This allows accessing the regex from other classes to avoid duplicating it somewhere else.