### Why is this needed? PEP 585 recommends using collections for type hints instead of their typing counterparts. ### Which area does this relate to? Middleware factory ### Suggestion Update the codebase to replace deprecated typing with the new standard for Python 3.9+. ### Acknowledgment - [x] This request meets [Powertools for AWS Lambda (Python) Tenets](https://docs.powertools.aws.dev/lambda/python/latest/#tenets) - [ ] Should this be considered in other Powertools for AWS Lambda languages? i.e. [Java](https://github.com/aws-powertools/powertools-lambda-java/), [TypeScript](https://github.com/aws-powertools/powertools-lambda-typescript/), and [.NET](https://github.com/aws-powertools/powertools-lambda-dotnet/)