Figma Groups & Frames are cropped when scaled

I really like the Lottie plugin for Figma. However, there is a bug that currently prevents me and my team from realising a project. I have reproduced the problem in a test file (see screenshot).

Goal: a rectangle should change colour and scale to create a zoom-in effect.

Bug: As soon as the rectangle and the text are grouped or framed, this group is cut off during the animation. In the screenshot you can see it on the right in the Lottie plugin.

How can this be solved? Is this a known error?