Use raw string notation for regexes in hacking checks

Since regular expressions typically include lots of '\', raw
strings should be used for regexes, to prevent the '\' being
intepreted as a string escape character.

Change-Id: I7e131bc50bb31dde979541924b143123da39e3b8
Merge "Use raw string notation for regexes in hacking checks"