def get_product_groups(self, content):
        pg = []
        for product_group in ProductGroup.all_tags():
            result = re.search(product_group, content, flags=re.IGNORECASE)
            if result is not None:
                pg.append(product_group)
        return pg
Extract product group hashtags.
dataset/ETHPy150Open GoogleDeveloperExperts/experts-app-backend/models/activity_post.py/ActivityPost.get_product_groups