In 2020, at the beginning of the pandemic, I bought some things that store a long, looooong time. Just in case. Nobody knew what would happen, so I have, among other things, lots of dried beans. I don't care about a "use by" date on those (same with pasta). As long as they don't get moldy, I think they're fine.
We don't eat many bean dishes. So I still have a lot of dried beans. The reasons I bought them? A) the keep practically forever, B) nobody knew what was going to happen, C) Costco still
had lots of dried beans, D) they are cheap, E) they go with a lot of things we already had (home canned tomatoes).
This winter, I am going to make more soups and chilis to use up some dried beans.