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
The issue was not with the PG bit but more with the QW bit when polling the programming status.
You can try the latest version SW4STM32 V2.8.0.
It includes the correction and should work now on all H7 revisions.