Text this: All-Optical Tuning of Fano Resonance for Quasi-BIC and Terahertz Sensing Applications