I've just tried that, and I still get the gatekeeper warning, so it doesn't seem to work anymore on macOS Ventura.
Executing the command does make the "Anywhere" option show up in System Settings, but from testing it doesn't seem that this option makes a difference.
Executing the command does make the "Anywhere" option show up in System Settings, but from testing it doesn't seem that this option makes a difference.