Create an acess point with netplan

As documented in netplan(5):

ap is only supported with NetworkManager.

You must specify renderer: NetworkManager and install the network-manager package to put a wifi interface in ap mode with netplan, because as stated, this is not implemented with the networkd backend.