FWIW, mbed-cmake can provide a viable alternative to Mbed’s IDE export functionality. While it doesn’t work with MCUExpresso or STM32CubeIDE, it does generate CMake project files that can be loaded and used by a number of different editors and IDEs, such as VS Code, CLion, and Eclipse CDT. These editors should provide at least as good of an experience as the manufacturers’ IDEs.
Also, mbed-cmake lets you keep the Mbed OS version fixed unless you explicitly decide to upgrade, and it also supports Mbed 5 and Mbed 2. So, you shouldn’t have issues with things being changed/broken in newer OS versions.