How setup escalation matrix in erpnext

I want to implement an escalation matrix. Here’s the scenario:
Suppose a task is created and assigned to a project user with a target date of 24-12-2024.
If the user fails to complete the task, an email should be sent to the project manager.
If the project manager does not take action within 2 days, the upper management should be notified.

Have you found a solution for this issue? I’m considering sending a duplicate notification two days after an item enters the pending state, but I’m still looking for a more robust escalation-matrix approach. Do you have any other suggestions?