In RDS, if you cannot use this, you can create masked view and use query rewrite to make it work.
In my experience PG anonymizer has performance issues when it comes to large queries.
Version 2.0 was released a few days ago. It's a complete rewrite in Rust.
Performance should be better than with v1.x