This is a macOS setting that apps can enable. Unfortunately, Fig can't work with this setting enabled, just like other apps such as key overlays and global shortcut apps.
In most cases, secure keyboard input will only be enabled temporarily, such as when entering a password in your browser. However, some apps may allow you to enable it all the time, such as iTerm and Terminal.app. This goes against Apple's own guidelines.