It had been in the works for a while, but now it has formally been adopted. From the article:
The regulation provides that by 2027 portable batteries incorporated into appliances should be removable and replaceable by the end-user, leaving sufficient time for operators to adapt the design of their products to this requirement.
Not sure how long I had the S4, a few years I guess. Started with android 4.3 and dropped it some time after 6 was current (which I couldn’t get). My Fairphone 2 broke, not that long for that one. The iPhone 6s lasted about 5 years, my 12 is still going strong.