Fragmentation function of g → $$ Q\overline{Q} $$(3$$ {S}_1^{\left[8\right]} $$) in soft gluon factorization and threshold resummation