I have the MX Master 3 and use IntelliJ on Windows 10, latest Logitech software version 8.36.86.
In browsers, the Back/Forward buttons behave as expected and take me back