Theoretically, the energy generated by battery explosion is similar to the energy stored in the battery. You can imagine how much energy you can use to push an electric car to run dozens of kilometers at once.
In fact, there are various measures to prevent the battery from exploding. Even if it explodes, the energy will not burst out all at once, but it will certainly do some harm to people nearby.
Battery explosion may also cause fire and corrosion damage.