Text this: Fano resonant metasurfaces at terahertz and infrared regime