While STM32 are generally supplied from a voltage source between 1.8V and 3.3V (VDD), most of their logic (core) is supplied by a voltage around 1V (VCORE). This is required by the very small transistors of the highly integrated circuit. VDD then directly supplies mostly the IO buffers and some of the analog circuitry (e.g. oscillators, PLL).
Traditionally, VCORE is generated by an integrated LDO regulator, which in some cases (e.g. in 'F2/'F4/'F7 but also other high-end/high-performance/high-consumption families) requires one or more external filtering capacitors (on VCAP pin(s)).
As LDOs waste energy and generate heat, in newer STM32 families, provisions to use SMPS were added. Unfortunately, this brought a whole conundrum with mutually noncompatible packages of the same chips, distinguished only by suffixes in their marking.
First, in the 'L4+ family, support for external SMPS was introduced (associated with -P suffix). This basically just meant, that the output of LDO - i.e. VCORE - was exposed on VDD12 pin(s) 1. When the external supply (which does need to be necessarily SMPS, but that is what makes sense) voltage is ever so slightly above the LDO's voltage, the LDO naturally stops sourcing, thus drawing current (except for some very small current into its reference/comparator). This arrangement allows to keep using LDO when SMPS is not desirable (e.g. at very small currents in sleep modes, where the external SMPS may have undesirably higher consumption; or in circuits where SMPS may be an optionally populated variant; or simply in cases where the LDO package is unavaliable due to parts shortage), or even dynamically switch between the two (e.g. in situations where the switching noise caused by SMPS is undesirable).
Some of the following families ('L5 and some newer 'H7) introduced an internal SMPS (in -Q suffixed packages). This mostly followed the same principle - output of the internal SMPS is to be fed to VDD12 pin(s), which still have the LDO connected, so in the -Q suffixed packages it is possible to select which of the two supplies is used. Whether dynamic switching is possible is not entirely clear, except for the 'U5 family, where the RM explicitly mentions this possibility.
Unfortunately, this is not the case for the 'H5 family. To quote from RM0481 Rev 2, 10.5.1 SMPS and LDO embedded regulators:
The devices embed two internal regulators, exclusively enabled by hardware on power-on reset, depending upon package configuration.