functions – Use register_setting() in a loop

I try to use the function register_setting() in a loop but the settings are not set.

This is my code

<?php
add_action( 'admin_init', function()
{
    $registerSettings = array 
    (
        'homepage_intro',
        'Color',
        'etc.'
    );
    
    foreach( $registerSettings as $registerSetting )
    {
        register_setting( 'habsj_option_group', $registerSetting );
    }
    
    register_setting( 'habsj_option_group', 'businessHoursTuesday' );
});
?>

Is there somebody who can help me with this?