A former School of Visual Arts student who slashed a Muslim taxi driver in the neck while shouting, “This is your checkpoint, motherf–ker!”was sentenced to nine years in prison yesterday, after apologizing to the victim in court.

“I failed in every aspect of my life during the days of my alcoholism,” Michael Enright, 24, said in Manhattan Supreme Court.

“I am sorry from the bottom of my heart and I will spend each day that I have to right my wrongs to you,” he said, referring to the victim, Ahmed Sharif, who was not present in court.

Prosecutors had asked for a sentence twice as long for Enright, who had struck up a conversation with the Bangladeshi driver before attacking him in 2010.

Enright had been an alcoholic since age 12, his lawyer, Lawrence Fisher, told Manhattan Supreme Court Justice Richard Carruthers.