Fix unmatched ) in regex when using %s in prefix.