I suspect it's this line:
The \ character indicates an escape and \S is not recognized.
Try a double \\ to escape the backslash:
Not 100% sure that's right, but hopefully!
Thank you for your help.
You are right. The "\" is not regnonized.
It works now with the double \\.