Checks if the given path matches the pattern.
path
@override bool matches(String path) { return _regex.hasMatch(path); }