You can update your PS5 controller through an on-screen prompt, but if you miss it, there's a manual workaround.
Sync your controller, check the USB connections, and unsync other devices This article explains how to fix It when a PS5 controller doesn't connect wirelessly or with a USB cable. Instructions apply ...