Solved
STM32CubeIDE PA3 Alternate Function Bug
Hi,
There is a blatant bug in the STM32CubeIDE that has costed me a board iteration on a professional product.
It says that pin PA3 is positive comparator input. When it isn't. Look here

This is what the datasheet says.

