Content.mgcb won't open on double click (VS 2022)

When I had this problem, this is what fixed it for me:

If for some reason, you can’t find the mgcb exe file, run the command:
dotnet tool install -g dotnet-mgcb-editor