A quick workaround seems to be quoting the parameters like this:
netplan set "ethernets.eth0.activation-mode='off'"
A quick workaround seems to be quoting the parameters like this:
netplan set "ethernets. eth0.activation -mode=' off'"