I have the following plantuml code:
@startuml
rectangle "A" {
rectangle "group" {
rectangle "B"
}
}
rectangle "C " {
rectangle "group" {
rectangle "D"
}
}
@enduml
I'd expect to get two rectangles (A and C), both having a rectangle "group" inside of them, the "group" inside of A holding another rectangle B, and C having a rectangle "group" with another rectangle "D" inside.
But what I get is this, where D is inside the group of A

Is this desired behaviour? When adding aliases for "group" everything works as expected:
@startuml
rectangle "A" {
rectangle "group" as g1 {
rectangle "B"
}
}
rectangle "C " {
rectangle "group" as g2 {
rectangle "D"
}
}
@enduml

I've used the online server to test this behaviour and created the pictures there.