I have a defined template, and I want to use it on the ppt exported using PPTXGEN LIBRARY. is it possible ?
Only if you convert your template to (i.e. implement your template in) Javascript.
I found a python package here: python-pptx-text-replacer
If you are in an company, there's a commercial package called docxtemplate.