ACF will not update the values before the post is saved.
You can:
— use the acf/save_post hook instead of the WP hook
— you can get the new values from $_POST[‘acf’] instead of using get_field()
both are explained here https://www.advancedcustomfields.com/resources/acf-save_post/