Odd error on top of my dashboard. How do I fix it?

You have a plugin or theme that is using wp_localize_script() incorrectly. That’s all that can be said based on what you’ve shared. The solution is to deactivate plugins until the error goes away. The last plugin you deactivated is responsible, and you will need to contact its author about properly supporting 5.7.

Note that apart from this message, this shouldn’t be causing any other issues on your site.