Like i say if there a block includes multiple child nodes that defines in a schema definition, the widget decoration can’t be at any place inside this block node else the hole.
For Example:
the code block here defines as a pre tag, inside it a code element
So to make it happen i must create a custom block definition for the code element on the schema, to make it a pre node content, so the decoration can add as a direct child of the pre element