Fix unescaped } in regex