Weird, it should work. In the off chance you can't get it to work in the actual M.2 slot you can use a NVMe to PCIe adapter to get around that.
You'll want something like this NVME to PCIe x1 adapter: https://www.amazon.com/dp/B09TGW3P82