How to search by error type with wildcards?

In the Sentry web UI, I want to be able to search for all errors which match a pattern.

I can do error.type:"MyCustomError"

But if I try to use a wildcard, e.g. error.type:"My*Error" then I get a 500 internal server error

My project is a react-native app

Is this the self-hosted version or If the former, what version are you using and do you have access to logs to diagnose the issue further?, this is the display in the web ui

There is a request in network tab which gets 500 error code, and response is like
{"detail": "Internal Error", "errorId": "xyz"}