The documentation defines a string literal like this:
stringliteral ::= [stringprefix](shortstring | longstring)
You are using the string value r .
Then we have these definitions for the characters in the lines:
shortstringchar ::= <any source character except "\" or newline or the quote> longstringchar ::= <any source character except "\">
where you will notice that the backslash is not one of the characters allowed in a short line or a long line.
source share