I use combination CTRL+SHIFT+PowerButton or just close the lid of my macbook to lock the screen.
It used to work great, and it still works but not great. Sometimes either of methods don't trigger lock screen, which ruins the idea of locking itself. One day I will find out that some just opened my laptop and get all the data from it.
macOS BigSur 11.2.1 (20D74)