import re

regex = r"\d+\s*((?:Apple|Banana|Orange|Pineapple)s?\b[\s\S]*?)(?=$|\d+\s*(?:Apple|Banana|Orange|Pineapple)s?\b)"

test_str = "I have 2 apples in my bag and apples are great food toeat. you shud eat apples daily.\n\n it is very good for health. 3 bananas are also good. it reduces fat."

matches = re.findall(regex, test_str, re.IGNORECASE)

for match in matches: print(match + "\n")
