I would allow an array and then implode using `|`. E.g:

````php
->scalarNode('excluded_ajax_paths')
    ->beforeNormalization()
        ->ifArray()->end()
        ->then(function ($v) { return implode('|', $v); }
    ->end()
    ->defaultValue('^/bundles|^/_wdt')->end()
->end()
````