When receiving an IPv6 there could be a "scope-id" part which is handled and validated by python [stdlib](https://docs.python.org/3/library/ipaddress.html#ipaddress.IPv6Address.scope_id). However the string representation of this kind of value is not valid when used in postgres (see examples in [RFC-4007](https://datatracker.ietf.org/doc/html/rfc4007.html#section-11.3) which raises an error > invalid input syntax for type inet: "fe80::1234%ne0" Thus the db-prep value should not be the str representation of IPv6 addresses.