Regular expression to match any character being repeated more than 2 times, and any 2 characters being repeated more than 2 times

I tried "^(.)\1{2,}$" but output was always character(0)

I think it would be

(.)\1|(..)\2