847293 scripts: fix incorrect regex escape

Authored and Committed by Shung-Hsi Yu 4 months ago
    scripts: fix incorrect regex escape
    
    With Tumbleweed's switch to Python 3.13 recently I noticed several
    syntax warning related to regex
    
      .../scripts/python/suse_git/patch.py:57: SyntaxWarning: invalid escape sequence '\*'
        break_matcher = re.compile(b"(---|\*\*\*|Index:)[ \t][^ \t]|^diff -")
      .../scripts/python/git_sort/git_sort.py:490: SyntaxWarning: invalid escape sequence '\.'
        version_match = re.compile("refs/tags/v(2\.6\.\d+|\d\.\d+)(-rc\d+)?$")
      .../scripts/python/git_sort/git_sort.py:578: SyntaxWarning: invalid escape sequence '\.'
        m = re.search("v([0-9]+)\.([0-9]+)(|-rc([0-9]+))$", tags[-1])
      ...
    
    Fix them by using raw string/byte literal instead. There's probably more
    of these laying around, but I didn't look into them further.
    
    Link: https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals