Duplicate system_stm32g0xx.c file after regenerating
I've got a project that has the following files in the tree view:

All is well if I clean and build, but if I open the .ioc and "Generate Code", the tree changes to:

and the project then fails to build due to a duplicate system_stm32g0xx.c file.
Why is this getting added and how do I stop it?
I am using STM32CubeIDE V1.18.1.
