Hydrogen is too expensive to produce, compress and store. It’s not workable for small power equipment. Workable fusion reactors are a long way away. Electrical generation could be switched to thorium reactors. Thorium is safer than uranium reactors and doesn’t produce plutonium for bombs. Aviation fuel is still needed.
Metal production requires huge amounts of energy that electricity has a hard time providing.
So many other products are made from petroleum we can never get rid of it. Unless of course you want to go back to wood, glass, leather, wool and ceramics.