The boss of Shell has said he is “sorry” for buying Russian oil last week despite dozens of major international companies announcing they would abandon the country over its war in Ukraine.

The oil was purchased last week at much lower prices as sanctions began to take its toll on the Russian economy.

Chief Executive Ben van Beurden said: “We are acutely aware that our decision last week to purchase a cargo of Russian crude oil to be refined into products like petrol and diesel – despite being made with the security of supplies at the forefront of our thinking – was not the right one and we are sorry.”

The company said it would immediately stop buying Russian crude oil on the spot market and will shut service stations, aviation fuel and lubricants operations in Russia.

READ MORE: Russia's evacuation corridors for Ukraine are a 'PR stunt', says journalist

The rest of the company’s exit from Russian oil and gas will take place over time.

Shell has said it will “withdraw from its involvement in all Russian hydrocarbons, including crude oil, petroleum products, gas and liquefied natural gas (LNG) in a phased manner, aligned with new Government guidance”.

Profits from the remaining Russian gas that Shell will process will be sent to a fund and the business will work with humanitarian organisations to figure out how best to spend the money.

Mr van Beurden said: “Our actions to date have been guided by continuous discussions with governments about the need to disentangle society from Russian energy flows, while maintaining energy supplies.

“Threats today to stop pipeline flows to Europe further illustrate the difficult choices and potential consequences we face as we try to do this.”

He added: “As we have already said, we will commit profits from the limited, remaining amounts of Russian oil we will process to a dedicated fund.

“We will work with aid partners and humanitarian agencies over the coming days and weeks to determine where the monies from this fund are best placed to alleviate the terrible consequences that this war is having on the people of Ukraine.”

This follows Shell’s announcement last week that it would end its involvement with the Nord Stream 2 pipeline which was intended to bring Russian gas into Europe.

It also said at the time it would exit its partnerships with Gazprom.

On Tuesday the company said it might take weeks to complete the removal of Russian crude oil from its supply chains.

It said that withdrawing from Russian petroleum, piped gas and LNG is a “complex challenge” that will need “concerted action by governments, energy suppliers and customers”.

“A transition to other energy supplies will take much longer,” the company added.