It could be the case that the Taiwan government was insightful enough to sign long term contracts with its energy providers? I believe Australia is the main exporter of natural gas to Taiwan. Russia is not even in the picture. Taiwan gets most of its oil from Saudi Arabia.
Edit: My bad, seems like Taiwan does import fossil fuels from Russia. Japan, South Korea, Taiwan buy $5.5bn of Russian fuel: think tank - Nikkei Asia