Hrm,
It really depends on the motherboard I think. A lot of the X570 and B550 motherboards are limited in operating system support in terms of what is officially supported (everyone targets Windows 10 now, for gaming mostly). You may find better overall support in a motherboard like X470 or B450 as they can be updated to support the 5000 series Ryzen CPUs. I typically run Ubuntu myself and it has worked perfectly on all my boxes so far but I don't have on-board Wifi on the particular motherboard that I run it on. And I don't have a 5000 series CPU in my AM4 board that runs Ubuntu. It's a MSI ProSeries B450M PRO-M2 Max motherboard. Worked fine with the Athlon 3000G (APU). I have an ASUS X570 TUF Gaming-Wifi motherboard sitting here ready to be tested, but I don't have a CPU at all for it due to the massive shortages and wait times. Otherwise, I'd spin up a Ubuntu distro VM and let you know. My CPU won't be here for another week or two based on projections.
Very best,