Hi there,
Sorry that the file layout and user interface for the Export for Web window in Photoshop 22.2 is broken and does not allow you to rename a file and export it.
Please try restoring the Photoshop app preferences to default and let us know if that helps?
You can check out the steps mentioned here: https://adobe.ly/2Qzc0K3
Please backup your settings prior to resetting the preferences. You can check: https://adobe.ly/2vNz6FG
Thanks,
Akash