Officially, Godot does not provide console exporting support due to the close nature of the SDKs and the development programs for them. However, third parties offer Godot console export support, so one of them probably has a PlayStation 4 or PlayStation 5 Godot export.
This page on the documentation explains a bit about the console support situation in Godot.