The national security law was introduced by Beijing in 2020 to clamp down on protesters.