Can dry ice explode?
Chemicals used as explosives are those which, by some reaction/state change, can produce a large pressure (and thus usually volume) change very quickly.

While dry ice (solid carbon dioxide) is much more dense than in its gaseous phase, at room temperature the change happens very slowly, and is just unstable rather than stable but reactive, so can't be left and triggered later.

This makes it pretty useless as a working explosive.

Since it can exert a significant pressure while it sublimates, however, it can make other things explosively fail -- like the dry ice in the soda bottle demonstration. A quick search suggests that soda bottles are rated to withstand a pressure difference of around 100 psi (~6.8 atm, 0.69 MPa), and the increasing pressure won't stop the carbon dioxide subliming/boiling (since at that point it'll be a liquid) until ten times that.

Now, there is a market for things that slowly expand with a lot of force ("non-explosive demolition agents"), but they're solids that you mix into a slurry and pour into a cavity, since these can trivially exert orders of magnitude more pressure -- a common brand-name one, Dexpan, is rated at 18000 psi -- and they also turn from a slurry or solid into another solid. If you tried this operation with something that turned into a gas, you'd need to seal the cavity to stop the gas just escaping, whereas with solid-to-solid reactions, gravity and the solid itself will do the job for you.