You need to pull to_entries[]
outside the if ... then ... else ... end
clause:
.regions | to_entries[] | if .value.domains[$arg1] then .value.name else empty end
This can be shortened to:
.regions | to_entries[] | .value | select(.domains[$arg1]) | .name