Text this: Deciding FO-rewritability of Regular Languages and Ontology-mediated Queries in Linear Temporal Logic.