Question: Is there regex to catch every character except one?
For instance every characters in curly brackets until open curly bracket is found, then don't match that. For instance catch:

```
{lorem ipsuem}

```

but not:

```
{lorem ipsum {lorem}

```

because there is another `{` within
I've tried different solution like:

```
\{[^\}].+?(?=)\} or \s\{[^\}].+?\s(?!\{)\}

```

Answer: 
I had a similar problem this week, what worked for me was to uninstall the entity framework tools and reinstall them again. 

1. uninstall: `dotnet tool uninstall --global dotnet-ef`
2. install again: `dotnet tool install --global dotnet-ef --version 3.0.0-*`

For me the `--version` did the trick as otherwise I got a wired error.
OK so I ended up backing up the computer and doing a complete install. A bit of a pain but then I installed a new copy of Visual Studio 2019 but looking very carefully to make sure there was nothing to do with 2.2. I only loaded the latest framework and core. Once I did this I then set about checking if I actually had the correct EF and this time I did. I have no idea why it got hung up with the older tool set and trying to blow away this tool set just didnt work.. having the correct tool set meant for me it worked.