fix do-end regex when nested hash