If project is not recognized, try opening the .project File Directly from File Explorer, so that it gets re-imported into stm32cubeIDE