If what you've posted is verbatim what you're getting from that chatbot, that "solution" is at the very least incomplete.
It's not Visual Basic, either, but it is mostly valid C#.
Do you have any programming experience?
What you currently have is going in the direction of what you'll need, but it's missing quite a bit:
Getting data from the clipboard can be done natively in C# as long as you're referencing System.Windows.Forms within your inline function, but if you want to use the "{CLIP}" token you'll need to parse the token using the appropriate proxy class (for which "VA" is an alias) method.
Splitting the string is what you'd want to to, but given that you're using Windows-style line endings, you'd want to split on that actual line ending, rather than just the newline character, which would leave the carriage return as part of the output.
Given that you want to reverse the "City" and "ZIP code" entries, you'll need to split that as well, but rather than using the Split() method which would also split multi-word city names, something like using LastIndexOf() and Substring() could be more appropriate.