A new fluorescent dye (4PBZC) comprising coumarin (C), piperazine (P), and benzimidazole (BZ) was designed, prepared, and complexed to cucurbit[7]uril (CB7) to detect carnosol (CAR), an anti-breast cancer drug, in sub-nanomolar concentrations utilizing the supramolecular indicator displacement assay strategy, the CB7-assisted pKa shift, and the CB7-retarded photoinduced electron transfer process