My mistake, i thought that acf will be created in custom fields group menu.
I have added the die(‘the filter is running’); at the top of my function and is running.
Is there any other way to create dynamically fields when i call a function?
Sorry my mistake, i have added the action as you wrote but the result is the same. No acf created.