” Lithium burns like magnesium when ignited.”
EV batteries do not have lithium metal.
But they burn at lithium temperatures... see this wapo article on a tesla S fire... https://www.washingtonpost.com/nation/2022/06/22/tesla-fire-sacramento/