Surface operators, chiral rings and localization in N$$ \mathcal{N} $$ =2 gauge theories