To connect AirPods to PS4 or PS5, you'll need to pick up a Bluetooth adaptor with audio capabilities, since Bluetooth doesn't come with the consoles.
You can upgrade eligible PS4 games to play on a PS5 in higher quality through the PlayStation Game Hub and PS Store.