Cut and paste this URL to share the unmodified register and value:
https://regviz.com/r/stm32/stm32wl/STM32WL5x_CM0P/TIM17/TIM17_AF1#0x0
TIM17 alternate function register 1
BRK BKIN input enable
BRK COMP1 enable
BRK COMP2 enable
BRK BKIN input polarity
BRK COMP1 input polarity
BRK COMP2 input polarity
https://github.com/modm-io/cmsis-svd-stm32