How can I use Logitech Options to lock my screen with my MX Ergo? On Windows I'm used to locking my screen via a Logitech Mouse Gesture. Unfortunately, I cannot select "Lock Screen" in the menu on MacOS. Is there still another way to lock the screen?

Given that Logitech Options allows me to launch a specific app, is there an App that I can launch to lock the screen?
In Logitech Options, you can assign a keyboard sequence to a button.  For this example, I assigned the top button  on the side (the one highlighted in green) the shortcut to lock the screen CommandControlQ.



Now, when I press the button, it's as if I've pressed the keyboard shortcut.