Oh, it's a tag-team effort for sure. Initially, Rugani's got to be more composed on the ball though, and if he's going to dive in like that, he's got to actually clear it.
So yeah, a bit unlucky the clearance gets deflected into Perica's path, and obviously we expect Giorgio to be able to shut that down (he looked bad there) - especially with Sami basically back, preventing Perica from cutting inside - but Rugani does need to do better. Turning the ball over in that area of the field is asking for trouble.
Btw, I'm a huge Rugani fan, and in favour of Max letting the guy make mistakes. He's a pretty significant part of the club's future, IMO.