@hichamveo Liquid action follows the DotLiquid implementation for Liquid as mentioned here. Looks like the issue that you have observed was fixed recently here.
I have reached out to my team to confirm the current version of DotLiquid version and if there are any plans to migrate it in the near future. I will update this thread once I heard back from my team.
Update 9/20:
Currently logic app supports 2.0.361 version of DotLiquid. The product team will be updating it to the latest version and we will update the version information in our document. The current ETA for this change is March 2022 but could be changed due to unforeseen circumstances.