[Chapel Merge] Use raw strings for regex patterns in some of our Python scripts

Branch: refs/heads/main
Revision: db566b470d0f8b80dd87274d5823fb66c024803f
Author: riftEmber
Link: Use raw strings for regex patterns in some of our Python scripts by riftEmber · Pull Request #25609 · chapel-lang/chapel · GitHub
Log Message:
Use raw strings for regex patterns in some of our Python scripts (#25609)

Needed to avoid SyntaxWarning: invalid escape sequence in Python 3.12.

See Python 3.12 release
notes
:

Invalid backslash escape sequences in strings now warn with
SyntaxWarning instead of DeprecationWarning, making them more visible.
(They will become syntax errors in the future.)

Warning observed in
https://chapel-ci.us.cray.com/job/correctness-test-darwin-m1/651/consoleFull
and many other runs.

See similar PR Fix sub_test error filtering for python 3.12 by jabraham17 · Pull Request #24664 · chapel-lang/chapel · GitHub.

[reviewed by @arezaii , thanks!]

Compare: Comparing b0df85fb02c1f4185ea1330062957f73a96b3e3b...064036f65e46458295a21b08e159b3f37148f0b8 · chapel-lang/chapel · GitHub

Diff:
M util/test/convert_start_test_log_to_junit_xml.py
M util/test/find_slow_tests.py
https://github.com/chapel-lang/chapel/pull/25609.diff