Non-signatories include the US, China, Russia, India, Pakistan, Israel and Iran. And Ukraine decided to withdraw from the treaty after being invaded by Russia.
So a ban with a lot of signatories, but not by any means universal.
A lot of these treaties will be abandoned once a war becomes existential for a countyr. As far as I know, chemical and biological weapons weren't used in WW2 because they don't make much sense. Same for nuclear weapons after WW2. They aren't very useful and may trigger world wide destruction.
Non-signatories include the US, China, Russia, India, Pakistan, Israel and Iran. And Ukraine decided to withdraw from the treaty after being invaded by Russia.
So a ban with a lot of signatories, but not by any means universal.