This is my personal practice...
Fish:
If the food looks or smells bad? Don't use it. If it seems okay? Try it.
Anything with low/no moisture content is usually fine for a couple years after arbitrary expiration or sell-by dates. Stuff like flakes, super-dry pelletized foods, powders, micro foods. Anything more complex can be more tricky as it begins to break down and oxidize.
Freeze-dried worms and the like last a looong time. Way longer than any expiration date suggests.
I've never had frozen food on-hand for more than a couple months. That's in a few decades of keeping fish. So I've never had to contemplate freezer burn or anything like that.
Shrimp & other inverts:
If it's shrimp food? Totally ignore expiration dates and use your own judgment. There are some companies selling shrimp food claiming it goes bad in just six months. One claims its pressed barley goes bad in about a year. Reality? It's good for easily a decade or until it starts to break down.
I make and sell shrimp food. So I tell people to use their judgment because that's what I do. I know my foods last for years based on testing and in-depth experience and I don't use any preservatives. Others, with a few exceptions, can last just as long. Shrimp-specific foods are especially subject to hype, price-gouging and fearmongering so it's best to exercise good judgment unless you just like throwing money away.
Shrimp are detrivores and live off rotting waste in the wild. People get uptight with them sometimes and forget that.