Go to STM32CubeIDE folder and double click on .project file.
This window will be shown, click "Launch" button:

and wait until the project workspace is loaded. You have to get this view:
Hope
Then click on the "Hummer" button to build the project. When it was completed,
Click on the arrow button shown in red and go to the menu shown below:

If this window is shown, click OK button to load the program to your MCU target and launch the debug session:

To run the program click on this button:

To stop the debug session click on this button:

Hope it helps.
To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.