Add specs for `/regexp/ =~ "string"` with named captures should set local variables

related #2051, #2466