Sure. It should work. Your motherboard together with the CPU support PCIe 4 which will work with PCIe 4 and PCIe 3 graphics cards including the RX 580.Title explains it all.
What macOS versions will it be compatible on?Sure. It should work. Your motherboard together with the CPU support PCIe 4 which will work with PCIe 4 and PCIe 3 graphics cards including the RX 580.
High Sierra through Sonoma. The Mac Pro 7,1 (2019) originally shipped with a workstation variant of the RX 580 so it's supported.What macOS versions will it be compatible on?