I don't mess with Macs much so I can't say from experience, but I found this guy on Amazon to adapt from the Mac 12+16 pin to normal M.2, so could either plug it into another computer or use another adapter to connect to it.
PCIe SSD to M.2 Key M Adapter Card for 2013 2014 2015 2016 2017 MacBook Air Pro Retina Hard Drive Converter to NGFF M2 https://www.amazon.com/dp/B07WF8C6DY/ref=cm_sw_r_cp_apa_i_zKkrEbAV7CQ5D