You have to include the trailing slash / otherwise the path will get stripped:
/
baseURL: 'https://example.com/',
Looks like a known issue: https://github.com/microsoft/playwright/issues/21864