I wrote a script to show how it could be done: https://github.com/mrharel/facebook_ads_comments_analysis
Also wrote about it here: https://www.linkedin.com/pulse/meta-ads-comment-extraction-sentiment-analysis-amir-harel-fxsae/