Tax Penalties

I filed taxes this year and received my state refund so far. I haven’t filed for previous years (2020-2022). I wouldn’t owe taxes, met health insurance criteria and dependent criteria as well. Would I get penalized? How can I file those tax years, online or mail in only?