Fix bug where matching round bracket is missing in regex

This bug is introduced in 88a97bb.