This is a known issue and 30 seconds in google could have solved it.
Read for example
https://idroot.us/install-vmware-workstation-pro-ubuntu-22-04/
If the installer does not find the header files see
https://www.reddit.com/r/pop_os/comments/tc3kh4/has_anyone_successfully_installed_vmware/