If you come across a prepositional phrase like as with in the future, is there any way to judge whether it is followed by a sentence or a noun?

If you come across a prepositional phrase like as with in the future, is there any way to judge whether it is followed by a sentence or a noun?

I've never seen a sentence added
If you are not sure whether to add a sentence or a phrase after a preposition, you can only read an example and memorize it