I see that an update in 2021 added this feature but the forward/back buttons don’t work with my Logitech MX Master 3.
I supposed you’d need the Logitech MX Master 3 to reproduce.
I expect the forward/back buttons to work as they are universally set for this behavior across all applications and specifically set for this behavior for Anytype in the Logi Options software.
2019 Macbook Pro
Logitech MX Master 3 mouse