Fix bug with unescaped '{' in method formatting regexes.