This can be solved by defining routes the following way:
Route::get('/{userId}/{profile}')->with('profile', '(?i)profile(?-i)');
Even smarter, define it as pattern
, then it also becomes available in Route groups.
Route::pattern('profile', '(?i)profile(?-i)');
Route::get('/{userId}/{profile}');