AI does not recognize the newly possessed pawn

hello
I have a problem with my third-person shooter project, I want to implement car driving which went well but the issue is when I possess the vehicle the AI stops recognizing me as the enemy but when I leave the vehicle it returns to normal.
is there a way to make the AI forget the character pawn and recognize the vehicle?
this is a screenshot of the entering vehicle logic.

and this is the AI perception

I found the solution after looking through the internet😁
I added unregister from perception system for the character when I possess the vehicle and register to perception system for the vehicle and reverse them when I leave the vehicle.