You must adhere to a number of standards while creating a Magento 2 extension, and I'm sharing the solution to Add a Custom Button Magento 2 System Configuration.
In order to implement custom functionality or carry out an operation, you should add a button in the Magento 2 system setup. Call a controller action or helper function, for instance.
As you can see, I’ve shared this technique to make the button that creates a CSV file for product attributes: https://meetanshi.com/blog/add-custom-button-in-magento-2-system-configuration/