REPMGR - change reconnect_attempts and reconnect_interval not working
I had the same problem, it's already solved:
https://github.com/2ndQuadrant/repmgr/issues/673

Issue has been reproduced and a fix applied, which will be in the upcoming 5.2.1 release.