The important thing is to wake at a regular time and to go to sleep when you're tired. It's not necessary to go to sleep at a regular time.
This no-bullshit page has some more detailed info with references: https://insomniasos.net/
This no-bullshit page has some more detailed info with references: https://insomniasos.net/