After displaying data changed with a paragraph the text format doesn't reset. And it will be also applied to the next symbols.
How to reproduce:
1) create a function with the following command:
give @a stick{display:{Name:'{"text":"§4Custom name with a paragraph..."}'}}
2) get data of the item
As you can see, a quote and a bracket is also colored.
Use
"color":"red"
instead