Is there a plugin in vsCode to rewrite your module (or display it) in a single simple format

We can often write complex code in Terraform using concatenated variables and Locals and then use dynamic blocks or loops to help build our infrastructure. It makes the code cleaner and shorter but when things don’t work as expected then tracking the issue down can be super hard and complex.

Does anyone know of a plugin or feature that can read all the module code and replace any reference of a variable with their real value and also rewrite dynamic blocks and loops and normal repeating code so we can read a simple form of the code for quick understanding and debugging?