Is it required to use AFCI/GFCI breaker when replacing subpanel?
It really depends what you're starting with, and what else is part of the scope of work.
If the scope of work is &quot;replace subpanel&quot; for a good reason, e.g. to get more spaces, dangerous (Zinsco), or obsolete (Pushmatic)... that does not trigger a requirement to upgrade breakers to AFCI or GFCI.  So you can simply stay with the same breaker types as you have now.
If it's part of something bigger, like a renovation, then you may be required to update to current-Code breakers for those circuits that are part of the renovation.