It's often forgotten that Flowey DID go to both Asgore and Toriel after waking up. They both know who he is.
That was in one of the timelines before Frisk showed up, not in the last one. They never found out about him once he started changing things on purpose