private Pattern createPattern(String userInput) {
		// We only support globbing characters in the query, any other regex characters need
		// to be escaped before we feed it to Java's regex Pattern class. But we need to do it
		// before we begin our substitutions as we will be adding some of those character into
		// the query string and we don't want those to be escaped.
		String s = escapeNonGlobbingRegexCharacters(userInput);
		s = replaceNamespaceDelimiters(s);
		s = removeExcessStars(s);
		s = convertNameGlobingToRegEx(s);
		s = convertPathGlobingToRegEx(s);
		s = convertRelativePathToRegEx(s);

		return Pattern.compile(s, createRegexOptions());
	}
Class for matching symbol names with or without namespace paths and wildcards.
Ghidra/Features/Base/src/main/java/ghidra/app/util/navigation/SymbolMatcher.java