If the PS5 or PS4 game supports it, "speciality" controllers already in use that are created for and licenced for the PS4 system, such as steering wheel controllers and arcade combat sticks, will function on the PS5.
PS4 games played on the PS5 will function with authorised PS4 controllers with a typical gamepad form factor. They cannot be used to play PS5 games.