The primary reason I moved to iPhones was because I got absolutely sick and tired of my android phones being abandoned by the manufacturer after a year. I'm sure it is better these days, but those earlier days of extremely slow Carrier-based updates completely ruined my trust and I know I'm not the only one.
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.
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.