Most ST chips are out of stock everywhere right now. But its not an ST specific issue, it more an industry wide issue right now.
Something like the STM32G030C8 looks like it can do all that you need, but as with everything else they are out of stock.
That chip might be the perfect one! I'll have to see if Platformio is compatible with it.
The STM32G030C6 also seems to be another cheaper solution... I will not need a lot of flash (i hope)
My device is mostly an I2C slave with memory mapping of some internal registers and a state machine

Yea I know it is a big issue. all my boards are on hold due to this. I'm designing my own AV-Receiver. DSPs, Amplifier chips, MCUs, all gone!
I've also had to redesign twice the DC DC section due to lack of ICs.
I'd use a real rtc (MCP79410 for example, Linux support already there, VBAT pin there) and a separate push btn controller chip like LTC295x. No software development at all, just works.
See:
https://www.digikey.de/de/ptm/l/linear-technology/power-ltc2950---push-button-onoff-controller/tutorial
fchk
the power management is not that simple. I have a whole power sequence and power states. the RPI CM4 is only part of the system.
Impossible. After re-stocking, what was cheap before shortages may not be cheap any more, or may disappear permanently.
I think the critical question is "in stock".
All smaller MCUs are pretty much gone now IME.
I know, this is a big question mark for me. All my boards were designed to be assebled by JLCPCB but now all parts are going out of stock.
At least right now i have a STM32F4 Nucleo dev kit that was taking dust and I'me starting to develop the FW...
Also my CM4 is still in a backorder... so I cannot even start the development over there...
At this point I think that the hardware design is mostly on hold. We will see what will happend!
This wafer shortage is starting to be a huge issue even for DIYers that are bored during lockdown.