Using part from the file name for renaming does not work

Good evening from Germany,
I want to use the barcode (S_2020-0187-MC) that I write into the file name with ExactScan Pro within the OCR process (this is what a file name looks like after scanning: Scan-001_2020-11-22_14|14|35_S_2020-0187-MC.pdf) when renaming the file in the 2nd part.
With a hazel rule "Name matches ... S _ 123 - 123 - MC" I read the barcode from this file name. Without "Anything ..." an error message will be displayed.
Unfortunately the screenshots do not work differently than with Dropbox
https://www.dropbox.com/s/fbocn0equ9ieqos/Name%20matches.png?dl=0
This works also so far. But if I want to rename the file in the second part of Hazel, the complete original file name is used for renaming.
I need a hint how to rename only the last part from "S_" on.
https://www.dropbox.com/s/qzr2drn9wclk4at/File%20Name.png?dl=0
I have already looked in the options, but with TextFotmat or Replace Text I did not get it right.
https://www.dropbox.com/s/1arvjpnoihv8mei/Rename.png?dl=0
What other options are there?
Thanks for the tips
Markus
I want to use the barcode (S_2020-0187-MC) that I write into the file name with ExactScan Pro within the OCR process (this is what a file name looks like after scanning: Scan-001_2020-11-22_14|14|35_S_2020-0187-MC.pdf) when renaming the file in the 2nd part.
With a hazel rule "Name matches ... S _ 123 - 123 - MC" I read the barcode from this file name. Without "Anything ..." an error message will be displayed.
Unfortunately the screenshots do not work differently than with Dropbox
https://www.dropbox.com/s/fbocn0equ9ieqos/Name%20matches.png?dl=0
This works also so far. But if I want to rename the file in the second part of Hazel, the complete original file name is used for renaming.
I need a hint how to rename only the last part from "S_" on.
https://www.dropbox.com/s/qzr2drn9wclk4at/File%20Name.png?dl=0
I have already looked in the options, but with TextFotmat or Replace Text I did not get it right.
https://www.dropbox.com/s/1arvjpnoihv8mei/Rename.png?dl=0
What other options are there?
Thanks for the tips
Markus