Can't register a user through the registration page with 'User Profile' enabled

I have enabled ‘User Profile’ feature as the documentation showed. I’ve also added 2 new attributes ‘cpf’ and ‘birth_date’, each with it’s own validations, which both work normally in the registration page. But when I click to register the pages simply reload, and then when I go to the console running my keycloak instance I get this error:

2023-11-09 22:49:33,269 WARN [org.keycloak.events] (executor-thread-5) type=REGISTER_ERROR, realmId=f66e53f5-4b62-4893-85f6-753a22cf929e, clientId=demo_server, userId=null, ipAddress=0:0:0:0:0:0:0:1, error=invalid_registration, auth_method=openid-connect, auth_type=code, register_method=form, last_name=Andrade, redirect_uri=http://localhost:8000/api/callback, first_name=Matheus, code_id=fb6500e2-69db-4eaa-9af9-29b3a4a278ae, email=matheusa56@academico.ufs.br, username=matheusa56

Looking at this error I noticed that the registration page didn’t send these two additional attributes. Also, I can’t see these attributes in my PostgreSQL database which the keycloak instance is connected, which probably is the reason of this error but I don’t know what I should do now.

I’m still at a loss at how this feature can work normally. At least I noticed that basically I need to reset the keycloak server to make it work, but it definetly should have worked automatically instead of making me do this manual procedure, or at least warn the user in the docs if this is the normal behavior