OP:
Just some random thoughts.
I have a 2021 MacBook Pro (not "air").
When the charging light DOESN'T turn green, do you get an icon resembling "a plug" in the menu bar?
(instead of the lightning-bolt icon)
This would indicate something isn't right with "the connection".
Something else I've noticed with the MBPro, may have no application to the MBair:
If I plug the charger into power (first), and then connect the Magsafe connector to the MBPro, I'm likely to get the "plug" icon in the menu bar, as I mentioned above.
HOWEVER... if I connect the Magsafe connector FIRST, and THEN plug the charger into power, things go as they should.
It's been like this for a while.
I've just learned to connect the charger in "proper sequence" as I describe above...