Text this: A coalgebraic take on regular and $omega$-regular behaviours