As already said. Chip shortage is a major issue at the moment and picking an MCU that's available now and guaranteed to be so in a few months from now is almost impossible. (Well of course you can always overstock anything that fits your requirements and happens to be available right now, which a lot of companies do, which in turn worsens the situation...)
There's a number of STM32 parts that fit your requirements (no more than 2 MB internal flash though, as far as I could find) in the L4, F4, F7 and H7 series. In order of power consumption, roughly... pick what fits.
Right now, for instance, Mouser has the STM32L4R9ZIJ6 with 262 in stock. 2 MB flash, 640 KB RAM. BGA package.
In QFP package, you have the STM32F469BIT7: 2 MB flash, 384 KB RAM. No stock though.
The STM32L4S9ZIT6 is in QFP package but in very limited stock...
Keep in mind that, apart from the availability issue, with those specs, the MCUs are not going to be cheap. The above parts are all around $20 or above.
OTOH -even though I'm not sure I would consider this at the moment for a commercial product - there's the RP2040, with 264 KB RAM, dual core M0+ and external QSPI flash. I'm pretty sure it would do the trick just fine for a smart meter. But availability in large quantities is pretty unknown.
In any case, you probably should look at MCUs using external QSPI flash. Because MCUs with >= 2 MB internal flash will limit your options drastically at the moment and will be kinda expensive too.