It's hard to say since I've never seen one go bad. I've had mine since 2019 and use it every day. The button is rated for 1,000,000 cycles. I tried to find something about the STM32 lifecycle from the data sheet, but couldn't find anything.
So all I can say for sure is at least 5 years.