Countries join NATO mainly because it is a defensive alliance, and they feel the need for joint protection.Obviously not condoning Russia's invasion and this horrible war, but I am confused why after the break up of the Soviet Union and the victory of the Cold War NATO still decided to expand towards Russia when the reason it was formed was no longer there or a threat. Putin who was at an earlier time quite friendly with the Western countries even asked maybe in a not serious or ironic way if Russia could now join NATO.
Maybe this situation wouldn't have arrived if NATO decided to stay as it was in 1989.
So, what you are effectively suggesting could be read as 'those countries closer to Russia, who were scared of Russian actions and so applied to join NATO to help defend themselves if necessary should have been refused by the other members of NATO and left to suffer whatever fate was in store for them on their own.'
I'd prefer a wider peace pact than that really.