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.
Please follow this guide: <https://learn.microsoft.com/en-us/ef/core/miscellaneous/cli/dotnet>

With .dotnet core 3.0 you have to install ef via `dotnet tool install --global dotnet-ef`.
Use `dotnet ef` to verify version.