All Ryzen CPUs support ECC RAM, compatibility depends on the motherboard. Most don’t list whether they do or do not support ECC, but a good portion of the B450 boards do. It’s probably worth contacting support for the board you intend on purchasing to verify if it supports ECC or not.