Search for third-generation scalar leptoquarks with the CMS experiment