Require that matched nodes have a name matching pattern.
pattern
TagQuery nameMatches(RegExp pattern) => where((n) => pattern.hasMatch(n.name));