Fix a regex that would allow the username to be detected incorrectly, if the username contained parentheses.