I have setup SQL 2019 (RTM-CU12)) AG distributor and it seems to work fine. Failover of the distributor does not affect replication.
I have setup SQL 2014 (SP3-CU4) AG publisher and replication seems to work fine.
I run the stored procedure sp_redirect_publisher to associate the original publisher and the published database with the availability group listener name of the publisher availability group. I run validation using sys.sp_validate_replica_hosts_as_publishers and I get the publisher's listener DNS name as expected.
However, After failover, the Log Reader Agent is still trying to read from the former Primary database which is not accessible.