See notes here:
#728 (comment)
To reproduce:
Install php instead of php@7.3 with Homebrew, then run valet use php73. Valet will suggest it's not installed, even though it is, because it looks at php which doesn't have a version number and therefore doesn't match php73.