Dear @Bella,
Thank you for sharing your question with the Wefugee Community and sorry for the late reply!
As far as I know, within 2 years after you learned that the child is not yours, you can appeal the paternity in court. However, the court will check the case carefully and you need to have profound explanations for your doubts.
I hope this helps and all the best,
Meike