A simple util method for coloring strings using normal chat colors (&) and the new HEX colors added on 1.16, the format used it's <#FFFFFF>
or <color_name>
(second has a limited list of colors added into Bungeecord Chat API for the old color system, for example <red>
it's &c
).
A small visualization of how the regex works, made using debuggex.com