In June 2025 new EU regulation will come into effect, mandating at least 5 years of OS updates, starting when the model is *removed from the market* aka the last unit is sold.
So in practice that'll mean 7+ years.
Note that Apple and Google made a big deal out of extending their upgrade timelines, without mentioning that they actually have to ... if they want to keep selling in the EU.