Integral points on algebraic subvarieties of period domains: from number fields to finitely generated fields