It doesn't happen to me. Which git and python version do you have?
I have git 1.8.3.2 and Python 2.7.5+.
The advantage of the regex is to spare 2 or 3 subprocesses to get the same information.