If you need to adjust cursor speed and want scroll behavior to differ between the TrackPad and a mouse, then I can vouch for LinearMouse [1]. It is free of charge and open-source, and perfectly covers my needs.
I’ve been using it for many years, I think it’s one of the oldest alternative mouse driver for Mac. Highly recommended to those who want to avoid the bloated (and now AI powered, for whatever it means) Logitech software.
I just wanted to also suggest BetterMouse (https://better-mouse.com). SteerMouse is great, but it lacks the ability to map gestures to the thumb button on the MX Master mice. BetterMouse allows you to do that and has a UI thats a bit more understandable.
Until moving to Windows, this made my mouse on macOS bearable. Removed all accel with 1600 sens so that when I went from macOS for work to Windows for gaming back to macOS for work, I wouldn't lose my mind. Nowadays I just stick to Windows because WSL2 is pretty rad. But SteerMouse saved my sanity for quite a few years.
[1]: https://github.com/linearmouse/linearmouse