If you want to get only the numbers from the text, you can easily use:
"(\d+)"
When try it on regex101 platform, the results are:
also, you can use Regex:
"\}?\{?(\d+)\\?\}?"
to skip all special & un-wanted characters, and the results should be as this: