Oil and especially natural gas will continue to be a significant driver of Alberta's economy for decades to come. There a number of projects underway already in Alberta (wind, solar, hydrogen, lithium) and a burgeoning tech industry that are aimed at diversifying the provinces' economy.
As for the 'world largely moving away from a reliance on oil & gas', there is reason to doubt that commitment and how soon it will happen.
North America - committed
Western Europe - committed
Eastern Europe - not so committed
Most of Asia - not committed
Most of South America - not committed
Most of Africa - not committed
I realize a lot of countries signed on to the many climate change agreements that have evolved over the years, but many have not taken any tangible action. Changing governments can and do interrupt that progress.
North American and Western Europe are not going to be the difference makers in the transition to green energy.