Update middleware documentation to close #20792

Update middleware documentation to state that DISALLOWED_USER_AGENTS is a list of compiled regex.