M.2, formerly known as the Next Generation Form Factor, is a specification for internally mounted computer expansion cards and connectors. It was developed to replace the older Mini SATA and Mini PCIe standards.
M.2 supports a variety of module sizes and interface types, offering greater flexibility for modern devices. From Wikipedia