Treasurer Jim Chalmers has warned world leaders an escalation of conflict in the Middle East could derail the economic recovery and make inflation worse.