There appears to be some ambiguity with your use of the term modernism. As it was defined by Pope Leo XII in Testem Benevolentiae Pope Pius X in Pacendi Dominici. Modernism as so used referred to ideas that would have the Church relax its standards in not only disciplinary matters but also with regard to matters affecting the deposit of faith. In light of this what is the basis for your claim that the Church no longer considers modernism to be a heresy?
Advances in biblical sciences such as the historical-literary critical methods are not modernism in itself, though such methods can be misused to promote modernist interpretations of Scripture (as defined above) such as we see with Fr. Raymond Brown’s later works.
Do you consider the Pontifical Academy of Sciences, whose mission is to promote the natural sciences, to be modernism?
The question becomes, What definition are you attaching to the word modernism? Etymologically, “modernism” means an exaggerated love of what is modern, an infatuation for modern ideas. There is also use of “modernism” to refer to 20th century liberal Protestant theology. Amongst Catholics, modernism was seen as essentially “the critique of our supernatural knowledge according to the false postulates of contemporary philosophy”.
You appear to conflate modernism with the Church’s legitimate endeavors to learn from and promote the various sciences, as well as influence scientists, et al. with the Catholic perspective in matters of faith and morals.