What type of pass code is it for the phone ?
If you can access your phone then one of the options is to log into your Samsung Account on another device and use the findmyphone option to reset it @bud23
Passcodes are a Security feature that's meant to protect the phone and contents so isn't meant to be circumvented.
I wish you all the best with this situation.
🌈 Stay Safe & Stay Alert. 🌈
Current Phone ~
Samsung Note 20 Ultra 5G SM-9820 _256Gb SnapDragon 865+
Samsung One Ui 2.5/ Android 10.