HI Ner07,
Thank you for reaching Microsoft Community. I'm sorry to hear about the issue that you are having on the camera of your Surface Pro 7.
May I know if you are prompted for an error message when you try to access the camera? If yes, please provide the error message.
Does it happen on all the camera of the device (Front and Rear) including the IR camera for Windows Hello Face?
Kindly try these steps below to troubleshoot the issue:
1: Make sure Camera is enabled in the UEFI settings
See this page for the steps on How to get to the UEFI settings
On the UEFI screen, go to Devices
Make sure that the IR, Front and Rear Camera options are enabled
If already enabled, disable the options for about 10 seconds then back to enable
Select Exit > Restart now
2: Run Surface Diagnostic Toolkit
See: Fix common Surface problems using the Surface Diagnostic Toolkit (microsoft.com)
3: Check for Windows Update
Go to Windows Settings > Update & Security and select Check for updates
Make sure all updates need are installed including Optional updates
4: Update drivers and firmware
Check what is the current OS Build of your Windows version by going to Settings > System > About.
Go to Download driver and firmware for Surface, choose Surface Pro
Then click the link next to Surface Pro 7 then click Download on the next page.
Choose the .msi file that matches your current OS Build and click Next.
After downloading, run and install the .msi then Restart.
5: Run System File Checker Tool
See: Using System File Checker in Windows (microsoft.com)
If still the issue persist, kindly check on Device Manager if there is a camera or USB driver that is having an error. If there is, please provide us with the error code and name of the driver.