Except those treaties and agreements were broken by Ukraine and NATO years before the Russian invasion. And every foreign policy expert advised against it at the time. Even Henry Kissinger warned the west was intentionally trying to provoke an invasion from Russia, and not honoring the agreements.
By allowing NATO to position scores of missile & troop deployments at the Russian border, and attempting a genocide against the ethnic Russians they promised to allow some self-governance.