In general, food “expiration dates” are a good reference point for how long you have had something. If you’re cleaning the cupboards/refrigerator and you find something a year or two beyond the expiration date it’s good to get rid of it, not because it’s bad, but that you bought something and didn’t use it, nor are you likely to.
I have found things five and six years past the expiration date in the cupboard and it was time for it to go.
That is indeed a bit much! Yet something like sweetened condense milk might still be good, if the can is. And we still have some (very) dried beans that are over 10-15 years old!