Legislation that is properly passed and that is in force—and that was the issue in this case, where there's no date of coming into force that's later—is in force as of the date of royal assent and becomes law. That is binding on the government and on citizens.
On July 20th, 2021. See this statement in context.