The PS5 controller doesn't just work with the PS4, so you must pick up a Bluetooth adapter. This will usually come in the form of a USB device which needs to be plugged into the PS4. The adapter then ...
If you can't get your PS4 controller to connect with the console, fear not: it's frustrating, but most of the time, easily fixed. Try each of these solutions until one of them solves the problem.