And if we're talking Ukraine, we have to talk Poland as it has been facilitating 90% of all Western military equipment, humanitarian aid, and crucial trade deliveries into the country.
Poland is, of course, geopolitically positioned in a way that requires at least regional power status to survive if not thrive. A power vacuum in Poland is bad news for the security of Europe and Poland's immediate neighbors and regional partners as well.
As a result, an important component of long term Polish grand strategy has been the quiet building up of its logistical prowess and might and its supply chains for years. Current big names: the CPK/Port Polska megaproject which is designed with civilian/military dual use in mind; Euroterminal Sławków; expansion of the Port of Gdańsk and other ports. Regional projects include the Via Carpathia and the Via Baltica.
Poland and the Baltics know they're next on Putin's list. So they're glad to help Ukraine. Better than fighting the Russians on home territory.
Taiwan and Japan, though, aren't in Russia's line of fire. The cooperation with Ukraine is because Ukraine figured out how to stop Russia. Taiwan has a real threat, and if they can build defenses that mean China faces a years-long war, there probably won't be one.
Even the most optimistic Russian does not think Russia will ever get beyond https://en.wikipedia.org/wiki/Novorossiya which is not much more than Russia currently occupies. You really think they will eventually march over Ukraine on to Warsaw?? That’s as likely as the exiled Chinese government in Taiwan taking over China.
When the war started, it certainly looked like it. Russian soldiers were in Kyiv at one point:
https://en.wikipedia.org/wiki/Battle_of_Kyiv_(2022)
It was the failure of Russian logistics and the triumph of Ukrainian logistics that beat them back.
Ukraine is keeping Russia where it is at a tremendous expenditure of people and treasure.
Their success in the conflict is not guaranteed.