The service "redirect.request subscriber" has a dependency on a non-existent service "path.alias_manager" While upgrading D8.9 to D9.1 got the below issue. Tired all solution nothing works. Because on this issue site is down and unable to process anything.

[php7:notice] [pid 26850] Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: The service &quot;redirect.request_subscriber&quot; has a dependency on a non-existent service &quot;path.alias_manager&quot;. in /var/www/xxxx/xxxx/xxxx/vendor/symfony/dependency-injection/Compiler/CheckExceptionOnInvalidReferenceBehaviorPass.php on line 86

Could anyone faced this issue or how to overcome?
In Drupal 8.8 path.alias_manager was deprecated and in Drupal 9 it was removed. You need to update the Redirect module to a version compatible with Drupal 9.
The current version contains the correct service definition having path_alias.manager as dependency:
modules/contrib/redirect/redirect.services.yml
redirect.request_subscriber:
  class: Drupal\redirect\EventSubscriber\RedirectRequestSubscriber
  arguments: ['@redirect.repository', '@language_manager', '@config.factory', '@path_alias.manager', '@module_handler', '@entity_type.manager', '@redirect.checker', '@router.request_context', '@path_processor_manager']
  tags:
    - { name: event_subscriber }