Looks like the problem is in /bin/glnxa64/MathWorksProductInstaller
It runs fine without sudo, however no GUI opens when run with sudo.
BTW, the MathWorksProductInstaller application didn't exist in R2021A, it used something called install_unix
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!