Hi Ishaan,
Currently, we do not support STM32F072RB as part of our embedded coder support package or Nucleo support package. But we support NUCLEO-F031K6 which is also of STM32F0 family, as a part of our Nucleo HSP.
Another option is to use developing a target workflow for ARM Cortex-M to add this processor support.
Please refer to the below documentation regarding the same