In /os/hal/ports/STM32/STM32WLxx/stm32_registry.h I2C2 is disabled, according to the datasheet it's available on these chips (both STM32WLxx and STM32WLExx variants), is there a reason why it's not implemented here?
Fix would be just to set STM32_HAS_I2C2 to true at line 147.