Catalyzes the peptide bond hydrolysis in dipeptides having basic amino acids lysine, ornithine or arginine at C-terminus. Postulated to function in a metabolite repair mechanism by eliminating alternate dipeptide by-products formed during carnosine synthesis. . This is the function of Ensembl gene identifier ENSG00000146281 (PM20D2, peptidase M20 domain containing 2).