When you ask a question, make sure you include as much detail as possible. Such as code, the issue you are facing, and what you expect the result to be. Upload code here https://paste.mod.gg/(see $code for more information on how to paste your code)
Easiest way would probably be using $spectre, a library. You can install it by running dotnet add package Spectre.Consoledotnet add package Spectre.Console in the terminal in the root folder of your project, then using the library is as simple as
AnsiConsole.MarkupLine("This is some [red]red[/] text!");
AnsiConsole.MarkupLine("This is some [red]red[/] text!");
Spectre.Console is a .NET library that allows for easy creation of console UIs, text formatting in the console, and command-line argument parsing. https://spectreconsole.net/