This is nothing to do with adding plugins. Or not directly at least. I expect that someone has upgraded PHP on your server without telling you.
You have two choices... you downgrade PHP back down to 8.1 or you upgrade Moodle. Moodle 4.4 is just out but 4.3 also supports PHP 8.2.