Is there a way? If not, that is incredibly disappointing.
There is a way to do that yourself,
go to Logitech GHUB if you have a logitec mouse, and bind each button to a certain key like that:
then assign the function you need to the button you’ve bind to.