A NativeAOT size analysis of Npgsql shows 276k of System.Text.RegularExpressions. These come from the geometry types (NpgsqlPoint, NpgsqlLine...), which parse their PG text representation via regex, and a trivial usage in PgPassFile.
We should remove these. In general, we shouldn't be in the business of reimplementing PG text representations (no other type does this any more), and the geometry types are very rarely used.