What the Ukraine situation demonstrates is that if Russia invades a non-NATO country, that country may receive some limited armaments from NATO countries, some "thoughts and prayers", but is otherwise on its own. So Finland and Sweden choosing to join NATO is logical.
Russia has no right to whine and complain about Finland and Sweden joining NATO. Russia did that to itself.