Ritonavir is a strong cytochrome P450 (CYP) 3A4 inhibitor and acts as a boosting agent; it slows down the metabolism of nirmatrelvir, causing it to remain in the body for a longer duration at higher concentrations.