fixup! Improve regexes in utils/git.py