Set up new wifi without networking

Hello. So I have a situation where my SSID and Password were changed unexpectedly. I haven’t been able to reach my RasPi 4 via ethernet (Won’t accept DHCP?), and I need to put in the new credentials. How can I do this?

What I have tried so far based on my search:
sd card: make “config” folder, file called “network” and put a config in it.

Solved: Since HA automatically enabled new network adapters, I plugged in a USB ethernet adapter and was able to reach it that way