The STM32G030 is well suited for the task. Maybe a bit overkill, but it is very cheap (around 35-40 cents) and well supported. However if you are going to produce thousands of units, you might consider even cheaper contenders that, although not as powerful as the STM32G0x, will also do the job. The CH32V003J4M6 is a RISC-V MCU made by WCH that costs below 20 cents, but you need to purchase a cheap dedicated debug probe (around 4€). There are tons of code examples and many people supporting these chips. Another MCU for considering is the PY32F002AL15S6, you can use any CMSIS-DAP probe you could already have or make (as with the STM32G030, because both are Cortex M0+), and it costs around 10 cents in low quantities, but it is not as well documented as the formers.