Is there a way to override core Moodle forms to add more fields? like category form

I’m trying to figure a way to add more fields to the category form in Moodle, is there a way to achieve that through local plugins? I have tried making a local plugin with the same file structure for editcategory_form.php and made a custom one with the same original file in addition to the new fields, the plugin gets recognized and installed and has it’s own settings page that I can access but Moodle keeps serving me the original editcategory_form.php, how can I override it so it serves my copy of the form instead?