<?xml version="1.0"?>
<ownershipDocument>

    <schemaVersion>X0609</schemaVersion>

    <documentType>4</documentType>

    <periodOfReport>2026-11-02</periodOfReport>

    <notSubjectToSection16>0</notSubjectToSection16>

    <issuer>
        <issuerCik>0001275168</issuerCik>
        <issuerName>FIVE STAR BANCORP</issuerName>
        <issuerTradingSymbol>FSBC</issuerTradingSymbol>
        <issuerForeignTradingSymbol></issuerForeignTradingSymbol>
    </issuer>

    <reportingOwner>
        <reportingOwnerId>
            <rptOwnerCik>0001857830</rptOwnerCik>
            <rptOwnerName>Ramirez-Medina Lydia Ann</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerNonUSAddressFlag>false</rptOwnerNonUSAddressFlag>
            <rptOwnerStreet1>C/O FIVE STAR BANCORP</rptOwnerStreet1>
            <rptOwnerStreet2>3100 ZINFANDEL DRIVE, SUITE 100</rptOwnerStreet2>
            <rptOwnerCity>RANCHO CORDOVA</rptOwnerCity>
            <rptOwnerState>CA</rptOwnerState>
            <rptOwnerZipCode>95670</rptOwnerZipCode>
            <rptOwnerStateDescription></rptOwnerStateDescription>
        </reportingOwnerAddress>
        <reportingOwnerRelationship>
            <isDirector>0</isDirector>
            <isOfficer>1</isOfficer>
            <isTenPercentOwner>0</isTenPercentOwner>
            <isOther>0</isOther>
            <officerTitle>EVP, Chief Ext Affairs Officer</officerTitle>
        </reportingOwnerRelationship>
    </reportingOwner>

    <aff10b5One>0</aff10b5One>

    <nonDerivativeTable>
        <nonDerivativeTransaction>
            <securityTitle>
                <value>Common Stock</value>
            </securityTitle>
            <transactionDate>
                <value>2026-11-02</value>
            </transactionDate>
            <transactionCoding>
                <transactionFormType>4</transactionFormType>
                <transactionCode>S</transactionCode>
                <equitySwapInvolved>0</equitySwapInvolved>
            </transactionCoding>
            <transactionAmounts>
                <transactionShares>
                    <value>4307</value>
                </transactionShares>
                <transactionPricePerShare>
                    <value>44.92</value>
                </transactionPricePerShare>
                <transactionAcquiredDisposedCode>
                    <value>D</value>
                </transactionAcquiredDisposedCode>
            </transactionAmounts>
            <postTransactionAmounts>
                <sharesOwnedFollowingTransaction>
                    <value>9368</value>
                    <footnoteId id="F1"/>
                </sharesOwnedFollowingTransaction>
            </postTransactionAmounts>
            <ownershipNature>
                <directOrIndirectOwnership>
                    <value>D</value>
                </directOrIndirectOwnership>
            </ownershipNature>
        </nonDerivativeTransaction>
    </nonDerivativeTable>

    <derivativeTable></derivativeTable>

    <footnotes>
        <footnote id="F1">Includes 6,000 shares granted pursuant to the Five Star Bancorp 2021 Equity Incentive Plan (including 2,400 shares which have vested and 3,600 which are scheduled to vest in equal installments over the remainder of a five-year period, provided Ms. Ramirez remains employed by Five Star Bancorp on the respective vesting dates), 3,629 shares granted pursuant to the Five Star Bancorp 2021 Equity Incentive Plan (including 726 shares which have vested and 2,903 which are scheduled to vest in equal installments over the remainder of a five-year period, provided Ms. Ramirez remains employed by Five Star Bancorp on the respective vesting dates), and 2,715 shares granted pursuant to the Five Star Bancorp 2021 Equity Incentive Plan which are scheduled to vest in equal installments over a five-year period beginning in 2027, provided Ms. Ramirez remains employed by Five Star Bancorp on the respective vesting dates.</footnote>
    </footnotes>

    <remarks></remarks>

    <ownerSignature>
        <signatureName>/s/ Lydia A. Ramirez-Medina, by Heather C. Luck, Attorney-in-Fact</signatureName>
        <signatureDate>2026-11-03</signatureDate>
    </ownerSignature>
</ownershipDocument>
