Howto convert surface template to some ast?

Have some experience with Macro: Macro.prewalk helps me a lot with module converting.

Some of modules have sigil_F macros inside (surface template), I need to make some modifications there also.

Is there a way to convert surface’s template from text representation to some kind of AST and back? And also - is there smth similar to Macro.prewalk for surface’s format of AST?

And the same question for sigil_H - phoenix_live_view’s templates. In some cases I’ll have to convert surface template to phoenix_live_view.

Thanks inn advance!