The S10 stopped receiving Android security updates in March 2022. The issue here is with an issue with a SmartThings app update on Android 12. Not sure if there’s any Samsung devices that both run that version of Android and are still supported, and that’s likely why the issue wasn’t caught.
I suppose with an issue this serious, they’re probably compelled to fix it regardless of whether or not the affected devices are still supported.
Yeah it was pretty terrible until recently. It at least seems to be changing now. The Pixel 8 line and up now get 7 years of support, and Samsung followed shortly afterwards by doing the same with the S24 series (but not their lower end devices). There’s still plenty of other Android devices that get barely any support though, so it’s getting there, slowly.