When dealing with dynamic named format args, need to account for nested named args when skipping the content of the replacement. Fixes #4360