I'm assuming you enabled Filevault on the internal macOS boot drive? If so, then you will need to boot from a macOS installer (online in Recovery Mode or from USB) so that you can erase the whole physical SSD. Within Disk Utility you may need to click "View" and select "Show All Devices" before the physical drive appears on the left pane of Disk Utility (macOS 10.13+). Select the physical SSD and erase it as GUID partition and APFS (top option) if installing macOS 10.13+, otherwise GUID partition and MacOS Extended (Journaled) if installing macOS 10.11 - 10.13.
If this laptop is using a third party NVMe SSD, then you must be booted to a macOS 10.13+ installer since older versions of macOS are unable to communicate with a third party internal NVMe SSD.
Erasing the physical SSD will destroy the Filevaulted (aka encrypted) volume even if you don't know the password.