A coalgebraic take on regular and $omega$-regular behaviours (Logical Methods in Computer Science, 2021)