import re
p = re.compile(r'(?<!^)(?<!n)((n)\2{2,})(?!$)(?!n)', re.IGNORECASE)
s = "nnnABCnnnnDEFnnnnnGHInnnnnn"
print(p.findall(s))