Loop and surface operators in $ \mathcal{N} = 2 $ gauge theory and Liouville modular geometry