Energy stocks are approaching record levels seen earlier this year amid the Middle East war, as investors perceive diminishing prospects for a near-term ceasefire that could ease the standoff in the crucial Strait of Hormuz.