I don’t see anything wrong there, but I am not at all a netplan specialist. You have to be very careful with space indentation, cause it is part of the YAML structure. Use 2 spaces for each level, no tabs. “search” and “addresses” statement must start exactly after the same number of spaces.
# This is the network config written by 'subiquity'
network:
ethernets:
eth0:
#dhcp4: true
#version: 2
addresses: [172.16.1.18/23]
gateway4: 172.16.0.1
nameservers:
search: [lyceum.lyceumgenk.be, lyceum]
addresses: [172.16.1.10, 172.16.1.11, 172.16.0.1]
If it is still not OK, I don’t have any other idea.