Works fine for me with a nearly identical setup. M1 Mac Mini as a server with Ventura 13.3.1 and multiple M1 / M2 / Intel Macs also on 13.3.1 and one Monterey 12.6.5 that can all access the SMB shares on the M1 Mac Mini.
You should be able to ping the M1 Mac Mini from each of your MacBook Pro's by it's IP address and by it's Bonjour hostname. 192.168.1.123 and m1.local (hostname.local is the bonjour/zeroconf syntax).
On the M1 Mac Mini go to File Sharing in System Settings, click the little ' i ' near the ON/OFF toggle. Here is where you specify the folders you wish to share, select the folder and ensure you have appropriate users/groups assigned for Read/Write and Read Only access.
This might be your problem:
Click the Options button and you will see the users listed for Windows File Sharing. Make sure they are checked ON. You may wish to uncheck them, click Done then go back in and check them ON. It will ask for the SMB password which is distinct from the Mac user password. It can be the same password but it can also be different and when you change your macOS password this SMB password is unlikely to be changed.
While trouble-shooting turn off the Firewall if it is on. Once you get it working you can turn the firewall on and allow the traffic for SMB file sharing.
Open Finder and click on Network on the left sidebar. You should see the M1 Mac Mini listed. Double-click on the M1 Mac Mini and click Connect As and enter your username and password. If that works, you should see the share folders.
Via Finder press ⌘ + K to open the Connect to Server dialog.
The syntax is as follows: (not all options apply)
smb://Domain;User@Server/ShareName/FolderName
Domain only applies if you are on a Windows Active Directory or Samba managed domain.
Short version would be:
smb://m1.local/ShareName/FolderName
smb://192.168.1.123/ShareName/FolderName
That assumes that you are logged on as the user with access to the share. If that is not the case you can specify the user.
smb://User@m1.local/ShareName/FolderName
smb://User@192.168.1.123/ShareName/FolderName
Another item to check would be an incorrect saved password in the keychain.
You can also try mounting via Terminal:
ping m1.local
mkdir -p ~/mnt/ShareName
mount -t smbfs //m1.local/ShareName ~/mnt/ShareName