Use the Array Manipulation action to filter and try this regex [0-9MH]+
I'm not a regex expert by an means but you can use chat gpt (or other AI) to create a suitable regex for example:
create me a java regex to match only the numbers 0-9 and the uppercase letters M and H