Steam Deck natively recognizes the PS3 controller. Simply plug it in via USB, wait for Steam OS to recognize it, then unplug USB cable and it will work over Bluetooth without needing
Sony PS4 controller Sponge Ribbon Support playstation spare random button press | eBay
Ken Umemoto's vReality: PlayStation Dualshock 3 L3 Button Fix