Part of it can be replaced. New oil and gas pipelines from the middle east are already being built. Shipments of oil and gas from other countries have increased.
France is betting on building more nuclear reactors.
And if Germany hadn't gone full retard and closed it's reactor some years ago, it's dependency on Russia would be lesser.
But here is the thing, if Russia had a stable democratic government, that put diplomatic relations ahead of military threats and invasions, we could all live in a better place, where trade could be done freely to the advantage of all countries.