update hook path regex to allow _paths_