How to add custom text field inputs for attributes in backend?

I managed to achieve this using ACF and editing the “product-attributes.php” file in the woocommerce plugin.