@Override
	public ByteMatcher parse(String input, SearchSettings settings) {
		input = input.trim();
		if (input.isBlank()) {
			return new InvalidByteMatcher("");
		}

		try {
			return new RegExByteMatcher(input, settings);
		}
		catch (PatternSyntaxException e) {
			return new InvalidByteMatcher("RegEx Pattern Error: " + e.getDescription(), true);
		}
	}
{@link SearchFormat} for parsing input as a regular expression. This format can't generate
bytes or parse results.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/format/RegExSearchFormat.java