Remove usage of register keyword

It serves no purpose and is invalid C++17

BUG: 454050
(cherry picked from commit d0d6b191)
0 jobs for v22.04.2
latest