Aramco is the latest energy company to announce record earnings in 2022, helped by soaring energy prices following Russia's war in Ukraine.