looking at the examples on https://wiki.ubuntu.com/Netplan/Design
i dont think the curly brackets are correct in your “nameservers:” entry …
and you might also need to move them up one level (not underneath eth0 but as a global setting directly under “network:” )