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't connect all Bluetooth headphones to a PS4. Here are some of the specific ones you can, and how to set them up with your console.