.NET Core 2.1 was end of life Aug of last year. While the runtime won't get uninstalled automatically, updates to tooling won't be necessarily looking for it anymore.
.NET Framework is independent of .NET Core and installing/updating/removing one doesn't impact the other. 2.1 still shows up in mine and I'm running 6.0.300-preview.22204.3. You can try running dotnet --list-runtimes
and confirm the runtime is still installed, which it should be.
I'm wondering if you are a victim of this reported issue. You should be able to reinstall the .NET Core 2.1 SDK manually to get back to where you were.