The episode reminded me of Mahesh Bhatt's movie Zakhm. The theme is similar. The dad is a director having an non-legally-endorsed relationship with a woman who has borne his kid and pregnant with another. The director's role was played by Nagarjuna, his partner by Pooja Bhatt, their child by Kunal Khemu.
This show is inspired by Zakhm. Mahesh Bhatt has basically taken the plot of Zakhm and adapted it to a show but instead from the point of view of a little girl. Mahesh Bhatt did state that "Naamkarann starts where Zakhm ended."