Hi @zoziha, welcome to the Discourse! You may find this previous answer of mine relevant:
See also this particular use case where block was uniquely helpful for scoping:
block
and this answer about local scope in do concurrent:
do concurrent