[Bug] Responsive wrapping background stopped working in Autolayout

I noticed that when trying to have an element and a background that wraps around it (for example when creating a responsive button), it stops working if the element is complex (already an autolayout, or a group or a frame).

Here is my very simple layout to reproduce this:
Arc - 2023-08-11 at 15.06.29
Arc - 2023-08-11 at 15.06.26

When I select them both and group them or create an autolayout using a shortcut, the resulting autolayout places the BG as an element inside and not as a background and the nested frame is positioned absolutely.

Arc - 2023-08-11 at 15.06.43
Arc - 2023-08-11 at 15.06.40

This is extremely tedious and I believe this is a bug because it worked in the past.

If the element is atomic, like a text layer, the behavior is as expected:
Arc - 2023-08-11 at 15.13.24
Arc - 2023-08-11 at 15.13.27
Arc - 2023-08-11 at 15.16.25