Hi,
The power consumption of different GPIO ports can indeed vary, but the difference is usually quite small and may not significantly impact the overall power consumption of your system.
However, if you're designing a low-power application where every milliamp counts, then it could be worth considering. The STM32 microcontrollers are designed with power efficiency in mind, and different ports may have been optimized for lower power consumption.
That being said, the choice of GPIO ports should also take into account other factors such as the functionality of the pins, the layout of your PCB, and the ease of routing. In many cases, the power savings from using a specific GPIO port might be outweighed by these other considerations.
Regards