Can reproduce with /scriptevent. (1.21.100.20 only fixed /me, /say and /tell.)
The bug is hard to fix? So that if this argument is optional, please just change it from required to optional in BE.
And please revert these changes:
tile.brick_block.name
tile.nether_brick.name
And also can reproduce with /kick. They may work as intended so please change this to optional.