I updated weeks ago to the newer LTS Mate 24.04 and ended up having the same problem.
I have been using the same mouse since years, in details the Mad Catz Rat 7, and I always had it tailored thanks to Compiz (and some other workaround).
You might wanna take a look at this post to solve your problem, since it worked for me.