By basic linear algebra, we know that for any $A, B \in M_{n\times n}(\mathbb{C})$, we have $AB = I_n$ if and only if $BA = I_n$. Therefore, by Hilbert's Nullstellensatz, if we set $\langle AB - I_n \rangle$ to be the ideal of $\mathbb{C}[a_{11}, \ldots, a_{nn}, b_{11}, \ldots, b_{nn}]$ generated by the entries of $AB - I_n$, i.e. $\langle \sum_{k=1}^n a_{ik} b_{kj} - \delta_{ij} \mid i, j = 1, \ldots, n \rangle$, and similarly for $\langle BA - I_n \rangle$, we have that the two ideals have equal radicals.
What I wonder is: are the two ideals actually equal?
(I was able to verify in Mathematica that the case $n=2$ does work. Try it online!)