Question
Create project for The Connected Board
CubeProgrammer can identify (most?) recent STM32 boards from the ST-Link; eg,

So, suggestion:
Why not add a feature for CubeMX2 (and CubeMX?) to query the attached STLink, and create a project for that board ?
