if you make the `{` optional we should change the occurences of `[^=\}]` to include the `)` too like `[^=\}\)]`