Some refining capacity was damaged by military activity, but much was simply dialed back due to inability to get supply out. That will take time to restore. However, crack spreads and refinery profit margins should maintain themselves, making refiners a good place to invest while prices readjust. The bigger global problem is LNG — Qatar's infrastructure was heavily damaged, so Europeans will still face challenges replenishing supply, though US LNG exports are stepping up.
Getting the Strait open is the key. Once vessels move freely, the losses we're seeing in the market should hold and be built upon.