Dunno what version of macOS you are using, but in Tahoe macOS 26, just right click on the folder. At the bottom of the pop-up menu will be an item "New Terminal at Folder". You can also drag the folder to the Terminal window after typing "cd " at the prompt.
View attachment 2598858