PostgreSQL has a native UUID datatype, so when you use SQLAlchemy's UUID, it maps to a real PG UUID datatype, not BYTEA.
as for sqlalchemy_utils.UUIDType, we dont maintain that package here so you'd need to look at their source code.
Overall if you want complete "UUID mapped to any arbitrary binary datatype on any platform unambiguously", code it yourself, using the example at
https://docs.sqlalchemy.org/en/20/core/custom_types.html#backend-agnostic-guid-type as a guide. that example currently uses CHAR(32), but you can change it to use BYTEA/BINARY with appropriate changes. sqlalchemy_utils likely got their UUID type from an older version of this example.