Which locator should I use for Click Button when Id is not static?

You can use this CSS Selector:

a[data-testid="open-registration-form-button"]

or this XPath

//a[@data-testid="open-registration-form-button"]