I get the error: “the instructions are not valid in body method or lambda expressions of multiple lines”
It might be that it is simply not supported by the activity. I hope someone more experienced could shine some light here
Are you using them inside of a procedure? Per the docs you need to properly close the previous procedure with either
End Function or
End Sub (whichever is appropriate for yoru code) before you are allowed to create a region.
This error can also appear if the two directives are not in the same code block.