Joe Percoco, Gov. Andrew Cuomo’s former top aide and longtime close pal, finally expressed some remorse over actions that led to his conviction in March on corruption charges.

“I lay awake at night filled not only with the fear of what is to come for me, or the pain or embarrassment that I have brought upon myself, but with tremendous remorse for my actions and regret for the damage I have caused to others. I live with those feelings and that weight every minute of every day of my life,” Percoco wrote in a letter sent Thursday to federal Judge Valerie Caproni, the Albany Times-Union reported.

The letter was the first time Percoco said he was sorry for taking $300,000 in payoffs and other benefits from two companies seeking official favors.

Percoco is scheduled to be sentenced next week and his attorneys are hoping for a sentence of two years or less.

“Your Honor, the choices that have brought me before this Court … were my choices and my choices alone,” Percoco wrote.

“Integrity and careful attention to the rules were always virtues I demanded from each and every one of my colleagues. I failed to live up to my own high standards. I regret that I made even a single New Yorker question the integrity of their government. I regret that I have brought shame and embarrassment upon my former colleagues.”

“I wish I could go back and do things differently, but I can’t,” he wrote.

“Your Honor, I let down the people of the State of New York and I disappointed my family. I am truly sorry.”

Cuomo’s longtime friend, campaign manager and ex-executive deputy secretary left the administration in January 2016 to take a job at Madison Square Garden.