I'm using an Alder Lake i7 12700K machine now as my daily driver since last year (2022), but before that I was still using my Sandy Bridge i7 2700K machine I put together in 2012. That's 10~11 years of active service, and I still use it once in a while as a sub machine with no really noticable deficiencies. That 2700K's still more than powerful enough for most things I can throw at it today.
I also still have a home server running that's built around a Sandy Bridge i3 2100, too. That CPU's overkill, let alone anything newer, for a server that just handles backups and LAN file sharing.
Sandy Bridge was, in my opinion, the turning point when CPU performance finally met and outpaced common user demands for processing power. In generations prior it was commonplace for CPUs (and thus entire machines) to be upgraded every few years, because performance always became insufficient, but since Sandy Bridge it became practical to just keep using it for the better part of a decade if not more.