https://magecomp.com/blog/?p=3164
How to add Custom Options to the Product Programmatically in Magento 2