Modular data and regularity of Monge–Ampère exhaustions and of Kobayashi distance