I don't have a preset for that, just changed the script for Monterey. I use this one: Help with modifying some code pls - #16 by Dirk
It should have worked under Big Sur. Maybe the name of your AirPods does not contains "AirPods Pro". Have a look or maybe change this line in the script accordingly:
if item i of pairedNames contains "AirPods Pro" and item i of connectedValue = 1 then