@Matt303: might also want to look at the STSpin32G4 chip, used in projects like https://community.simplefoc.com/t/field-stack-trials-stspin32g4/3221/1
Same processor as the STM32G431 (same speed), up to 40 GPIOs available, ready to drive gate drivers directly (1A sink/source)