Directions from https://support.apple.com/guide/mac-help/open-a-mac-app-from-an-unidentified-dev...
- In the Finder
on your Mac, locate the app you want to open.
Don’t use Launchpad to do this. Launchpad doesn’t allow you to access the shortcut menu.
- Control-click the app icon, then choose Open from the shortcut menu.
- Click Open.
The app is saved as an exception to your security settings, and you can open it in the future by double-clicking it just as you can any registered app.