Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
Install host dependencies.
Import toolchain and SDK.
Create, configure, build and manage apps.
Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench
Well, I found an pretty easy solution to my problem at the end. It is a temporary solution, but it works. What I did was that I degraded my STM32CubeMX from 5.1.0 to 5.0.1. Something must have changed in the last version of STM32CubeMx.