Abstract Chronic psychostimulant use can cause long lasting changes to neural and cognitive function that persist even after long periods of abstinence. As cocaine users transition from drug use to abstinence, a parallel transition from hyperactivity to hypoactivity has been found in orbitofrontal-striatal glucose metabolism, and striatal D2/D3 receptor activity. Targeting these changes pharmacologically, using highly selective dopamine D3 receptor (D 3 R) antagonists and partial agonists, has shown significant promise in reducing drug-taking, and attenuating relapse in animal models of cocaine and opioid use disorder. However, much less attention has been focused on treating inflexible and potentially maladaptive non-drug behaviors following chronic psychostimulant use. Here we tested the selective D 3 R antagonist VK4-116 as a treatment for the long-term behavioral inflexibility in abstinent male and female rats with a prior history of chronic cocaine use. Rats were first trained to self-administer cocaine (0.75 mg/kg/reinforcer) or a sucrose liquid (10%, .04 mL/reinforcer) for 2 weeks (FR1 schedule, max 60 reinforcers in 3 hrs/ day), followed by 4 weeks of abstinence. Cognitive and behavioral flexibilities were then assessed using a sensory preconditioning (SPC) learning paradigm. Rats were given an VK4-116 (15 mg/kg, i.p.) or vehicle 30 mins prior to each SPC training session, thus creating four drug-treatment groups: sucrose-vehicle, sucrose-VK4-116, cocaine-vehicle, cocaine-VK4-116. The control groups (sucrose-vehicle, sucrose-VK4-116) demonstrated significant evidence of flexible SPC behavior, whereas cocaine use (cocaine-vehicle) disrupted SPC behavior. Remarkably, the D 3 R antagonist VK4-116 mitigated this cocaine deficit in the cocaine-VK4-116 group, demonstrating flexible SPC to levels comparable to the control groups. These preclinical findings demonstrate that highly selective dopamine D 3 R antagonists, particularly VK4-116, show significant promise as a pharmacological treatment for the long-term negative behavioral consequences of cocaine use disorder.