Seol mar théacs é seo: Evolution of magnetic interactions in a pressure-induced Jahn-Teller driven magnetic dimensionality switch