Jeffrey Epstein named Bill Gates’ former science adviser as one of three executors of his $578 million estate — though the man said he was “shocked” to learn of the news.

Boris Nikolic, a biotech venture capitalist, distanced himself from his inclusion in Epstein’s will, filed Monday in St. Thomas.

“I was not consulted in these matters and I have no intent to fulfill these duties, whatsoever,” Nikolic told Bloomberg in a statement.

Nikolic is listed as a “successor executor” of Epstein’s estate should the executors, longtime Epstein employees Darren Indyke and Richard Kahn, be unable to fulfill their roles.

The extent of Epstein and Nikolic’s relationship isn’t clear, but a source told Bloomberg that Nikolic funded more than a dozen gene-editing businesses after splitting from Gates in 2014 and controlled a $42 million stake in one gene company, Editas Medicine Inc.

Nikolic, 49, was excited about financial advice that Epstein, a former hedge-fund manager who was obsessed with genetic research, shared with private bankers ahead of Editas’ public offering, the source told Bloomberg. Nikolic was part of a broad network that overlapped with Epstein, Nikolic’s spokeswoman said.

A rep for Gates said Epstein didn’t provide any services to the billionaire philanthropist.