With this regex:
regex1 = /\\z/
the following strings match:
\"hello\" =~ regex1 # => 5 \"こんにちは\" =~ regex1 # => 5
In Ruby trunk, the issue has now been accepted as a bug. Hopefully, it will be fixed.
Update: Two patches have been posted in Ruby trunk.