Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/STMicroelectronics/STM32G070/TIM2/TISEL#0x0
TIM alternate function option register 1
TI1SEL
TI2SEL
https://github.com/cmsis-svd/cmsis-svd-data