Hey Juan, thanks! I think this is easy to accomplish if I understood right. Just make sure the green icon is 20px away and set to “Pin to Corner”; and set the resizing feature of the group of green bordered layer and the text inside to “Resize Object”. That should work.
When you need help you can use the Facebook group of Sketch too: https://www.facebook.com/groups/sketchformac/ People generally answer very fast there.