@abhijith_raj wrote:
Due to pin constraints, we’re considering using SCL and SDA pins from different GPIO ports—for example, SCL from port PA and SDA from port PC. Is it acceptable to assign I2C pins from different ports for a single peripheral?
So long as they are both for the same I2C peripheral - ie, both for I2C1, or both for I2C2, or both for I2C3.
The peripheral number is included in the AF pin name; eg,


https://www.st.com/resource/en/datasheet/stm32g491re.pdf
via: https://www.st.com/en/microcontrollers-microprocessors/stm32g491re.html#documentation
So there, for example, you have the SDA for I2C1 available in both Port A and Port B
@abhijith_raj wrote:
Also, we noticed a pin labeled I2C_SMBA. Could you explain its purpose? Can we use it for CLK or DATA?
See the Reference Manual:

https://www.st.com/resource/en/reference_manual/rm0440-stm32g4-series-advanced-armbased-32bit-mcus-stmicroelectronics.pdf#page=1626
Note:
You didn't give a full part number; the above documents are for STM32G491RE