You won't be able to extract a part of an attribute using either JSONPath or JMESPath as the functionality of splitting a string or substring is not there (yet?)
It is possible to do this using "normal" Regular Expression Extractor like this: SOAP Test (\d+)