Single-stranded DNA endonuclease. Binds 2 magnesium ions per subunit. They probably participate in the reaction catalyzed by the enzyme. May bind an additional third magnesium ion after substrate binding. Belongs to the XPG/RAD2 endonuclease family. FEN1 subfamily.