I gave you the link to study it.
Did you do it ?
Again:
https://www.msi.com/Motherboard/MEG-X870E-GODLIKE/Specification
7x M.2
M.2_1 Source (From CPU) supports up to PCIe 5.0 x4 , supports 2280/2260 devices
M.2_2 Source (From CPU) supports up to PCIe 5.0 x4 , supports 2280/2260 devices
M.2_3 Source (From Chipset) supports up to PCIe 4.0 x4 , supports 22110/2280 devices
M.2_4 Source (From Chipset) supports up to PCIe 4.0 x2 , supports 2280/2260 devices
M.2_5 Source (From Chipset) supports up to PCIe 4.0 x4 , supports 2280/2260 devices
4x SATA 6G
M.2_1 Source (via M.2 XPANDER-Z SLIDER GEN5) supports up to PCIe 5.0 x4 , supports 2280 devices
M.2_2 Source (via M.2 XPANDER-Z SLIDER GEN5) supports up to PCIe 5.0 x4 , supports 2280 devices
M.2_1:
• Supports up to PCIe 5.0 x4 (For Ryzen™ 9000/ 7000 Series processors)
• Supports up to PCIe 4.0 x4 (For Ryzen™ 8000 Series processors)
M.2_2:
• Supports up to PCIe 5.0 x4 (For Ryzen™ 9000/ 7000 Series processors)
• Supports up to PCIe 4.0 x4 (For Ryzen™ 8700/ 8600/ 8400 Series processors)
• The M2_2 slot will be unavailable when using Ryzen™ 8500/ 8300 Series processors.
M2_4:
PCI_E3 slot will run at x2 speed when installing device in the M2_4 slot. You can switch PCI_E3 slot to x4 in the BIOS, but this will disable the M2_4 slot.
4x USB 2.0 (Front)
4x USB 5Gbps Type A (Front)
8x USB 10Gbps Type A (Rear)
5x USB 10Gbps Type C (Rear)
1x USB 10Gbps Type C (Front)
1x USB 20Gbps Type C (Front)
2x USB 40Gbps Type C (Rear)
* USB 40Gbps Type-C ports on the back panel and M2_2 slot share PCIe 5.0 x4 bandwidth. Both run at PCIe 5.0 x2 when a device is installed in the M2_2 slot. You can switch M2_2 to PCIe 5.0 x4 in the BIOS, but this will disable the USB 40Gbps Type-C ports. The USB4 host controller supports up to PCIe 4.0 x4.
** USB 40Gbps Type-C ports on the back panel only run PCIe 4.0 x2 when install Ryzen™ 8500/ 8300 Series processors.