scripts: Fix risky uses of non-raw regex strings in Python scripts

Fixes pylint warnings like this one:

    doc/conf.py:325:0: W1401: Anomalous backslash in string: '\s'.
    String constant might be missing an r prefix.
    (anomalous-backslash-in-string)

The reason for this warning is that backslash escapes are interpreted in
non-raw (non-r-prefixed) strings. For example, '\a' and r'\a' are not
the same string (first one has a single ASCII bell character, second one
has two characters).

It just happens that there's no \s (or \., or \/) escape for example,
and '\s' turns into two characters (as needed for a regex). It's risky
to rely on stuff like that regexes though. Best to make them raw strings
unless they're super trivial.

Also note that '\s' and '\\s' turn into the same string.

Another tip: A literal ' can be put into a string with "blah'blah"
instead of 'blah\'blah'.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
diff --git a/scripts/check_link_map.py b/scripts/check_link_map.py
index b7385f0..1643fa9 100755
--- a/scripts/check_link_map.py
+++ b/scripts/check_link_map.py
@@ -22,10 +22,10 @@
 # to write a valid linker script that will fail this script, but we
 # don't have such a use case and one isn't forseen.
 
-section_re = re.compile('(?x)'                    # (allow whitespace)
-                        '^([a-zA-Z0-9_\.]+) \s+'  # name
-                        ' (0x[0-9a-f]+)     \s+'  # addr
-                        ' (0x[0-9a-f]+)\s*')      # size
+section_re = re.compile(r'(?x)'                    # (allow whitespace)
+                        r'^([a-zA-Z0-9_\.]+) \s+'  # name
+                        r' (0x[0-9a-f]+)     \s+'  # addr
+                        r' (0x[0-9a-f]+)\s*')      # size
 
 load_addr_re = re.compile('load address (0x[0-9a-f]+)')