A construction lien foreclosure action is an action against the real property and MUST be brought in the county where the property is located. It is an action concerning subject matter jurisdiction (the jurisdiction of the court to hear the matter) and, thus, can be raised at any time in a proceeding. If you are looking to foreclose a construction lien, please make sure 1) the lien is recorded in the right jurisdiction and 2) the lien is foreclosed on in the right jurisdiction.
In a recent case, Prime Investors & Developers, LLC v. Meridien Companies, Inc., 2020 WL 355930 (4th DCA 2020), a dispute arose between a general contractor and subcontractor on a hotel project in Miami-Dade County. The general contractor filed suit against the subcontractor for untimely and defective installation in Broward County. The subcontractor counter-sued the general contractor for breach of contract and asserted a claim against the developer of the hotel to foreclose a construction lien. Remember, the property was located in Miami-Dade County but the lawsuit was in Broward County.