Hello,
it seems the MbedOS was not properly inicialized by MbedStudio. Try to delete build folder and right click on the project and choose active… if this will not help, you will probably need to recreate your project.
And when you work with a project just once per two years then maybe read this amouncment
BR, Jan