Note that the Perl regex language is widely standardised with `\n` being the newline character (and `\r` for carriage return). It is unlikely that a non-standard usage will be accepted.
You could check, perhaps there is another backslash that matches all different types of line ends, but it won't be `\n`.