Try manually opening the project from STM32CubeIDE using "File > Open Project" and select the folder containing your .cproject and .project files. If that doesn't work, you can try resetting STM32CubeIDE's preferences by going to ~/Library/Preference...